From 2e427c2ceae13ca5c8083cb306395014fdc25add Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Thu, 2 Aug 2018 18:42:32 +0200 Subject: hid: fix nickname verification in the user MODE message --- hid/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hid') diff --git a/hid/main.go b/hid/main.go index c078440..39453f9 100644 --- a/hid/main.go +++ b/hid/main.go @@ -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 } -- cgit v1.2.3-70-g09d2