summaryrefslogtreecommitdiff
path: root/xS/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
commit9ee07873ea043ff52e977060751e4801eb047ee2 (patch)
tree4902c4e5e64d29e80587f840da15d6d27bde37bb /xS/main.go
parent7ee7dc5f9b67c97f02b7d90d9446290cb92b7d29 (diff)
downloadxK-9ee07873ea043ff52e977060751e4801eb047ee2.tar.gz
xK-9ee07873ea043ff52e977060751e4801eb047ee2.tar.xz
xK-9ee07873ea043ff52e977060751e4801eb047ee2.zip
hid: fix nickname verification in the user MODE message
Diffstat (limited to 'xS/main.go')
-rw-r--r--xS/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xS/main.go b/xS/main.go
index c078440..39453f9 100644
--- a/xS/main.go
+++ b/xS/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
}