hid: fix nickname verification in the user MODE message

This commit is contained in:
Přemysl Eric Janouch 2018-08-02 18:42:32 +02:00
parent 7ee7dc5f9b
commit 9ee07873ea
1 changed files with 1 additions and 1 deletions

View File

@ -1921,7 +1921,7 @@ func ircHandleMODE(msg *message, c *client) {
ch := channels[ircToCanon(target)]
if client != nil {
if ircEqual(target, c.nickname) {
if !ircEqual(target, c.nickname) {
c.sendReply(ERR_USERSDONTMATCH)
return
}