summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/commandmonitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IRCG/src/commandmonitor.cpp')
-rw-r--r--protocols/IRCG/src/commandmonitor.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp
index 1219816788..ecf55b4f83 100644
--- a/protocols/IRCG/src/commandmonitor.cpp
+++ b/protocols/IRCG/src/commandmonitor.cpp
@@ -502,10 +502,12 @@ bool CIrcProto::OnIrc_MODE(const CIrcMessage* pmsg)
}
// set bit for own mode on this channel (voice/hop/op/admin/owner)
- if (bAdd && cModeBit >= 0)
- wi->OwnMode |= (1 << cModeBit);
- else
- wi->OwnMode &= ~(1 << cModeBit);
+ if (cModeBit >= 0) {
+ if (bAdd)
+ wi->OwnMode |= (1 << cModeBit);
+ else
+ wi->OwnMode &= ~(1 << cModeBit);
+ }
Chat_SetUserInfo(m_szModuleName, pmsg->parameters[0], wi);
}