aboutsummaryrefslogtreecommitdiff
path: root/hid/main.go
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-08-02 18:42:32 +0200
committerPřemysl Janouch <p@janouch.name>2018-08-02 18:42:32 +0200
commit2e427c2ceae13ca5c8083cb306395014fdc25add (patch)
treebe361a363fbbe7eca6600089dc482f2809eae721 /hid/main.go
parenta4239548d3ef91e27caa5329481d2857743f501d (diff)
downloadhaven-2e427c2ceae13ca5c8083cb306395014fdc25add.tar.gz
haven-2e427c2ceae13ca5c8083cb306395014fdc25add.tar.xz
haven-2e427c2ceae13ca5c8083cb306395014fdc25add.zip
hid: fix nickname verification in the user MODE message
Diffstat (limited to 'hid/main.go')
-rw-r--r--hid/main.go2
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
}