summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-23 03:03:08 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-23 03:03:08 +0000
commite68d257ccd7a54fd3e92285ba604b7c35943c72a (patch)
treeadd35052f38a36e3064f2842ef21b94a8b18734d /src
parentcccd202374c3c658953f17005cf35a46a0f855ad (diff)
simple logic error (check they already are +o before you set it), seems to fix +o issue
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4521 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_sqloper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp
index 9593caea4..e103a1f4b 100644
--- a/src/modules/extra/m_sqloper.cpp
+++ b/src/modules/extra/m_sqloper.cpp
@@ -237,7 +237,7 @@ public:
WriteOpers("*** %s (%s@%s) is now an IRC operator of type %s", user->nick, user->ident, user->host, type.c_str());
WriteServ(user->fd,"381 %s :You are now an IRC operator of type %s", user->nick, type.c_str());
- if(user->modes[UM_OPERATOR])
+ if(!user->modes[UM_OPERATOR])
{
user->modes[UM_OPERATOR] = 1;
WriteServ(user->fd,"MODE %s :+o",user->nick);