diff options
Diffstat (limited to 'irc')
-rw-r--r-- | irc/states.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/irc/states.go b/irc/states.go index e68788a..365224e 100644 --- a/irc/states.go +++ b/irc/states.go @@ -631,6 +631,7 @@ func (s *Session) handle(msg Message) (err error) { Name: msg.Params[0], Members: map[*User]string{}, } + s.evts <- SelfJoinEvent{Channel: msg.Params[0]} } else if c, ok := s.channels[channelCf]; ok { if _, ok := s.users[nickCf]; !ok { s.users[nickCf] = &User{Nick: nick} @@ -709,11 +710,6 @@ func (s *Session) handle(msg Message) (err error) { s.channels[channelCf] = c } - case rplEndofnames: - channelCf := strings.ToLower(msg.Params[1]) - if c, ok := s.channels[channelCf]; ok { - s.evts <- SelfJoinEvent{Channel: c.Name} - } case rplTopic: channelCf := strings.ToLower(msg.Params[1]) if c, ok := s.channels[channelCf]; ok { |