Changeset 43 in code for trunk/irc.go
- Timestamp:
- Feb 7, 2020, 11:36:02 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/irc.go
r20 r43 4 4 "fmt" 5 5 "strings" 6 7 "gopkg.in/irc.v3" 6 8 ) 7 9 … … 91 93 } 92 94 } 95 96 func parseMessageParams(msg *irc.Message, out ...*string) error { 97 if len(msg.Params) < len(out) { 98 return newNeedMoreParamsError(msg.Command) 99 } 100 for i := range out { 101 if out[i] != nil { 102 *out[i] = msg.Params[i] 103 } 104 } 105 return nil 106 }
Note:
See TracChangeset
for help on using the changeset viewer.