Changeset 559 in code for trunk/upstream.go


Ignore:
Timestamp:
Jun 14, 2021, 7:44:38 PM (4 years ago)
Author:
contact
Message:

Add support for account-tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r553 r559  
    2222// requested when supported.
    2323var permanentUpstreamCaps = map[string]bool{
     24        "account-tag":      true,
    2425        "away-notify":      true,
    2526        "batch":            true,
     
    9596        batches       map[string]batch
    9697        away          bool
     98        account       string
    9799        nextLabelID   uint64
    98100
     
    535537                })
    536538        case irc.RPL_LOGGEDIN:
    537                 var account string
    538                 if err := parseMessageParams(msg, nil, nil, &account); err != nil {
    539                         return err
    540                 }
    541                 uc.logger.Printf("logged in with account %q", account)
     539                if err := parseMessageParams(msg, nil, nil, &uc.account); err != nil {
     540                        return err
     541                }
     542                uc.logger.Printf("logged in with account %q", uc.account)
    542543        case irc.RPL_LOGGEDOUT:
     544                uc.account = ""
    543545                uc.logger.Printf("logged out")
    544546        case irc.ERR_NICKLOCKED, irc.RPL_SASLSUCCESS, irc.ERR_SASLFAIL, irc.ERR_SASLTOOLONG, irc.ERR_SASLABORTED:
Note: See TracChangeset for help on using the changeset viewer.