diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 13:05:44 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 13:05:44 +0000 |
commit | dab3dc93c177400a749400c61c9253be055b78e3 (patch) | |
tree | a7326938792f133c551fc25c4b9120eb37de7647 | |
parent | cd31fc5b9a01e6b975160c46b153c0dd5c3e81dc (diff) |
Allow halfop to dehalfop themselves`
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2652 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/mode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index de994dd5b..83e79c243 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -318,7 +318,8 @@ char* ModeParser::TakeHops(userrec *user,char *dest,chanrec *chan,int status) return NULL; if (MOD_RESULT == ACR_DEFAULT) { - if ((status < STATUS_OP) && (!is_uline(user->server))) + /* Tweak by Brain suggested by w00t, allow a halfop to dehalfop themselves */ + if ((user != d) && ((status < STATUS_OP) && (!is_uline(user->server)))) { WriteServ(user->fd,"482 %s %s :You are not a channel operator",user->nick, chan->name); return NULL; |