From: om Date: Sun, 23 Jul 2006 03:03:08 +0000 (+0000) Subject: simple logic error (check they already are +o before you set it), seems to fix +o... X-Git-Tag: v2.0.23~7751 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=e68d257ccd7a54fd3e92285ba604b7c35943c72a;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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);