Changeset 25 in code for trunk


Ignore:
Timestamp:
Feb 6, 2020, 8:43:22 PM (5 years ago)
Author:
contact
Message:

Mark channel info as complete on RPL_ENDOFNAMES

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r23 r25  
    2020        Status    channelStatus
    2121        Members   map[string]membership
     22        complete  bool
    2223}
    2324
     
    159160                }
    160161        case irc.RPL_ENDOFNAMES:
    161                 // TODO
     162                if len(msg.Params) < 2 {
     163                        return newNeedMoreParamsError(msg.Command)
     164                }
     165                ch, err := c.getChannel(msg.Params[1])
     166                if err != nil {
     167                        return err
     168                }
     169
     170                ch.complete = true
    162171        case irc.RPL_YOURHOST, irc.RPL_CREATED:
    163172                // Ignore
Note: See TracChangeset for help on using the changeset viewer.