Changeset 125 in code for trunk/upstream.go


Ignore:
Timestamp:
Mar 19, 2020, 1:51:45 PM (5 years ago)
Author:
contact
Message:

Remove some IRCv3 constants

go-irc v3.1.2 adds some missing IRCv3 constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r117 r125  
    297297                        Params:  []string{respStr},
    298298                })
    299         case rpl_loggedin:
     299        case irc.RPL_LOGGEDIN:
    300300                var account string
    301301                if err := parseMessageParams(msg, nil, nil, &account); err != nil {
     
    303303                }
    304304                uc.logger.Printf("logged in with account %q", account)
    305         case rpl_loggedout:
     305        case irc.RPL_LOGGEDOUT:
    306306                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:
    308308                var info string
    309309                if err := parseMessageParams(msg, nil, &info); err != nil {
     
    311311                }
    312312                switch msg.Command {
    313                 case err_nicklocked:
     313                case irc.ERR_NICKLOCKED:
    314314                        uc.logger.Printf("invalid nick used with SASL authentication: %v", info)
    315                 case err_saslfail:
     315                case irc.ERR_SASLFAIL:
    316316                        uc.logger.Printf("SASL authentication failed: %v", info)
    317                 case err_sasltoolong:
     317                case irc.ERR_SASLTOOLONG:
    318318                        uc.logger.Printf("SASL message too long: %v", info)
    319319                }
Note: See TracChangeset for help on using the changeset viewer.