Changeset 752 in code for trunk/upstream.go


Ignore:
Timestamp:
Dec 6, 2021, 9:33:50 PM (4 years ago)
Author:
contact
Message:

Use more descriptive errors when aborting pending commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r749 r752  
    293293}
    294294
    295 func (uc *upstreamConn) endPendingCommands() {
     295func (uc *upstreamConn) abortPendingCommands() {
    296296        for _, l := range uc.pendingCmds {
    297297                for _, pendingCmd := range l {
     
    306306                                        Prefix:  dc.srv.prefix(),
    307307                                        Command: irc.RPL_LISTEND,
    308                                         Params:  []string{dc.nick, "End of /LIST"},
     308                                        Params:  []string{dc.nick, "Command aborted"},
    309309                                })
    310310                        case "WHO":
     
    316316                                        Prefix:  dc.srv.prefix(),
    317317                                        Command: irc.RPL_ENDOFWHO,
    318                                         Params:  []string{dc.nick, mask, "End of /WHO"},
     318                                        Params:  []string{dc.nick, mask, "Command aborted"},
    319319                                })
    320320                        case "AUTHENTICATE":
Note: See TracChangeset for help on using the changeset viewer.