diff options
author | Přemysl Janouch <p@janouch.name> | 2018-08-02 18:42:32 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-08-02 18:42:32 +0200 |
commit | 2e427c2ceae13ca5c8083cb306395014fdc25add (patch) | |
tree | be361a363fbbe7eca6600089dc482f2809eae721 /hid | |
parent | a4239548d3ef91e27caa5329481d2857743f501d (diff) | |
download | haven-2e427c2ceae13ca5c8083cb306395014fdc25add.tar.gz haven-2e427c2ceae13ca5c8083cb306395014fdc25add.tar.xz haven-2e427c2ceae13ca5c8083cb306395014fdc25add.zip |
hid: fix nickname verification in the user MODE message
Diffstat (limited to 'hid')
-rw-r--r-- | hid/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |