Changeset 125 in code for trunk/upstream.go
- Timestamp:
- Mar 19, 2020, 1:51:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upstream.go
r117 r125 297 297 Params: []string{respStr}, 298 298 }) 299 case rpl_loggedin:299 case irc.RPL_LOGGEDIN: 300 300 var account string 301 301 if err := parseMessageParams(msg, nil, nil, &account); err != nil { … … 303 303 } 304 304 uc.logger.Printf("logged in with account %q", account) 305 case rpl_loggedout:305 case irc.RPL_LOGGEDOUT: 306 306 uc.logger.Printf("logged out") 307 case err_nicklocked, rpl_saslsuccess, err_saslfail, err_sasltoolong, err_saslaborted:307 case irc.ERR_NICKLOCKED, irc.RPL_SASLSUCCESS, irc.ERR_SASLFAIL, irc.ERR_SASLTOOLONG, irc.ERR_SASLABORTED: 308 308 var info string 309 309 if err := parseMessageParams(msg, nil, &info); err != nil { … … 311 311 } 312 312 switch msg.Command { 313 case err_nicklocked:313 case irc.ERR_NICKLOCKED: 314 314 uc.logger.Printf("invalid nick used with SASL authentication: %v", info) 315 case err_saslfail:315 case irc.ERR_SASLFAIL: 316 316 uc.logger.Printf("SASL authentication failed: %v", info) 317 case err_sasltoolong:317 case irc.ERR_SASLTOOLONG: 318 318 uc.logger.Printf("SASL message too long: %v", info) 319 319 }
Note:
See TracChangeset
for help on using the changeset viewer.