From e68d257ccd7a54fd3e92285ba604b7c35943c72a Mon Sep 17 00:00:00 2001 From: om Date: Sun, 23 Jul 2006 03:03:08 +0000 Subject: 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 --- src/modules/extra/m_sqloper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/extra') 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); -- cgit v1.2.3