summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);