Skip to content

Commit

Permalink
Handle mode characters in NAMES correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed Jan 15, 2017
1 parent 5fcb658 commit 4dfc49e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func (i *IRCCat) handleNames(e *irc.Event) {
if e.Arguments[2] == i.auth_channel {
nicks := strings.Split(e.Arguments[3], " ")
for _, nick := range nicks {
// TODO: this is probably not an optimal way of trimming the mode characters.
nick = strings.TrimLeft(nick, "@%+")
i.auth_users[nick] = true
}
}
Expand Down

0 comments on commit 4dfc49e

Please sign in to comment.