Browse Source

Handle mode characters in NAMES correctly

tags/v0.1.4
Russ Garrett 7 years ago
parent
commit
4dfc49e50d
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      auth.go

+ 2
- 0
auth.go View File

@@ -26,6 +26,8 @@ func (i *IRCCat) handleNames(e *irc.Event) {
26 26
 	if e.Arguments[2] == i.auth_channel {
27 27
 		nicks := strings.Split(e.Arguments[3], " ")
28 28
 		for _, nick := range nicks {
29
+			// TODO: this is probably not an optimal way of trimming the mode characters.
30
+			nick = strings.TrimLeft(nick, "@%+")
29 31
 			i.auth_users[nick] = true
30 32
 		}
31 33
 	}

Loading…
Cancel
Save