Changeset 722 in code for trunk/upstream.go


Ignore:
Timestamp:
Nov 19, 2021, 6:21:48 PM (4 years ago)
Author:
contact
Message:

Use RPL_LOGGEDIN/OUT to mirror upstream status

This will allow clients to properly show/hide UI to login and
register.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r720 r722  
    587587                }
    588588                uc.logger.Printf("logged in with account %q", uc.account)
     589                uc.forEachDownstream(func(dc *downstreamConn) {
     590                        dc.updateAccount()
     591                })
    589592        case irc.RPL_LOGGEDOUT:
    590593                uc.account = ""
    591594                uc.logger.Printf("logged out")
     595                uc.forEachDownstream(func(dc *downstreamConn) {
     596                        dc.updateAccount()
     597                })
    592598        case irc.ERR_NICKLOCKED, irc.RPL_SASLSUCCESS, irc.ERR_SASLFAIL, irc.ERR_SASLTOOLONG, irc.ERR_SASLABORTED:
    593599                var info string
Note: See TracChangeset for help on using the changeset viewer.