hid: fix nickname verification in the user MODE message
This commit is contained in:
parent
a4239548d3
commit
2e427c2cea
|
@ -1921,7 +1921,7 @@ func ircHandleMODE(msg *message, c *client) {
|
||||||
ch := channels[ircToCanon(target)]
|
ch := channels[ircToCanon(target)]
|
||||||
|
|
||||||
if client != nil {
|
if client != nil {
|
||||||
if ircEqual(target, c.nickname) {
|
if !ircEqual(target, c.nickname) {
|
||||||
c.sendReply(ERR_USERSDONTMATCH)
|
c.sendReply(ERR_USERSDONTMATCH)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue