From: brain Date: Sat, 8 Jul 2006 16:47:05 +0000 (+0000) Subject: Remove comemnted-out GiveVoice and TakeVoice X-Git-Tag: v2.0.23~8059 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=7bb5bcf7728ef24759ebad38b404c5a2009f7456;p=user%2Fhenk%2Fcode%2Finspircd.git Remove comemnted-out GiveVoice and TakeVoice git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4173 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/mode.cpp b/src/mode.cpp index abcf4a671..320ba6195 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -222,63 +222,6 @@ const char* ModeParser::Revoke(userrec *d,chanrec *chan,int MASK) return ""; } -/* -char* ModeParser::GiveVoice(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_VOICE)); - - if (MOD_RESULT == ACR_DENY) - return NULL; - if (MOD_RESULT == ACR_DEFAULT) - { - if ((status < STATUS_HOP) && (!is_uline(user->server))) - { - WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, chan->name); - return NULL; - } - } - } - - return this->Grant(d,chan,UCMODE_VOICE); - } - return NULL; -} - -char* ModeParser::TakeVoice(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_DEVOICE)); - - if (MOD_RESULT == ACR_DENY) - return NULL; - if (MOD_RESULT == ACR_DEFAULT) - { - if ((status < STATUS_HOP) && (!is_uline(user->server))) - { - WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, chan->name); - return NULL; - } - } - } - - return this->Revoke(d,chan,UCMODE_VOICE); - } - return NULL; -}*/ - void ModeParser::Process(char **parameters, int pcnt, userrec *user, bool servermode) { std::string target = parameters[0];