From efe386c9fb8480f69066edf4da84f84504bc9320 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 15 Feb 2006 20:53:28 +0000 Subject: Fixed broken /oper git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3224 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_oper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd_oper.cpp b/src/cmd_oper.cpp index 435e37e59..8e57329d4 100644 --- a/src/cmd_oper.cpp +++ b/src/cmd_oper.cpp @@ -125,7 +125,7 @@ void cmd_oper::Handle (char **parameters, int pcnt, userrec *user) /* correct oper credentials */ WriteOpers("*** %s (%s@%s) is now an IRC operator of type %s",user->nick,user->ident,user->host,OperType); WriteServ(user->fd,"381 %s :You are now an IRC operator of type %s",user->nick,OperType); - if (!*user->oper) + if (!strchr(user->modes,'o')) { strcat(user->modes,"o"); WriteServ(user->fd,"MODE %s :+o",user->nick); -- cgit v1.2.3