Changeset 146 in code for trunk/upstream.go


Ignore:
Timestamp:
Mar 25, 2020, 10:54:08 AM (5 years ago)
Author:
contact
Message:

Add support for channel keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r143 r146  
    318318
    319319                for _, ch := range channels {
     320                        params := []string{ch.Name}
     321                        if ch.Key != "" {
     322                                params = append(params, ch.Key)
     323                        }
    320324                        uc.SendMessage(&irc.Message{
    321325                                Command: "JOIN",
    322                                 Params:  []string{ch.Name},
     326                                Params:  params,
    323327                        })
    324328                }
Note: See TracChangeset for help on using the changeset viewer.