summaryrefslogtreecommitdiff
path: root/src/cmd_oper.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 20:53:28 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 20:53:28 +0000
commitefe386c9fb8480f69066edf4da84f84504bc9320 (patch)
tree726882159c1cfd87d18518e60d0bf759f7c2470c /src/cmd_oper.cpp
parentd5d8a5987b2534b7177f13f99aee3c624fbc233e (diff)
Fixed broken /oper
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3224 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_oper.cpp')
-rw-r--r--src/cmd_oper.cpp2
1 files changed, 1 insertions, 1 deletions
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);