verify nick does not match curNick before adding to list
This commit is contained in:
parent
be0368e9ea
commit
5f334c64a9
3
irc.go
3
irc.go
@ -167,7 +167,8 @@ func (c *Connection) updateNicks(channel string, names []string) {
|
||||
|
||||
func (c *Connection) addNick(channel string, nick string) {
|
||||
channel = strings.ToLower(channel)
|
||||
if !hasNick(nick, c.userList[channel]) {
|
||||
|
||||
if nick != c.curNick && !hasNick(nick, c.userList[channel]) {
|
||||
if hasOpSymbol(nick) {
|
||||
nick = nick[1:]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user