diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-08 16:21:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-08 16:21:13 +0000 |
commit | 4ca8c0649ab4fc7291774d760cf64a84832f8e2e (patch) | |
tree | aa853fc05ea5f7567b0249fd3362b40b39f75018 | |
parent | 2d4621658d8daae931b7e44a9c3ecc6a04dcaf4f (diff) |
Remove the TakeHops and GiveHops from comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4171 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/mode.cpp | 58 |
1 files changed, 1 insertions, 57 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index c35b43131..1c00dd427 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -220,34 +220,7 @@ const char* ModeParser::Revoke(userrec *d,chanrec *chan,int MASK) return ""; } -/*char* ModeParser::GiveHops(userrec *user,char *dest,chanrec *chan,int status) -{ - userrec *d = this->SanityChecks(user,dest,chan,status); - - if (d) - { - if (IS_LOCAL(user)) - { - int MOD_RESULT = 0; - FOREACH_RESULT(I_OnAccessCheck,OnAccessCheck(user,d,chan,AC_HALFOP)); - - if (MOD_RESULT == ACR_DENY) - return NULL; - if (MOD_RESULT == ACR_DEFAULT) - { - if ((status < STATUS_OP) && (!is_uline(user->server))) - { - WriteServ(user->fd,"482 %s %s :You're not a channel operator",user->nick, chan->name); - return NULL; - } - } - } - - return this->Grant(d,chan,UCMODE_HOP); - } - return NULL; -} - +/* char* ModeParser::GiveVoice(userrec *user,char *dest,chanrec *chan,int status) { userrec *d = this->SanityChecks(user,dest,chan,status); @@ -276,35 +249,6 @@ char* ModeParser::GiveVoice(userrec *user,char *dest,chanrec *chan,int status) return NULL; } -char* ModeParser::TakeHops(userrec *user,char *dest,chanrec *chan,int status) -{ - userrec *d = this->SanityChecks(user,dest,chan,status); - - if (d) - { - if (IS_LOCAL(user)) - { - int MOD_RESULT = 0; - FOREACH_RESULT(I_OnAccessCheck,OnAccessCheck(user,d,chan,AC_DEHALFOP)); - - if (MOD_RESULT == ACR_DENY) - return NULL; - if (MOD_RESULT == ACR_DEFAULT) - { - // 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; - } - } - } - - return this->Revoke(d,chan,UCMODE_HOP); - } - return NULL; -} - char* ModeParser::TakeVoice(userrec *user,char *dest,chanrec *chan,int status) { userrec *d = this->SanityChecks(user,dest,chan,status); |