]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove comemnted-out GiveVoice and TakeVoice
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 8 Jul 2006 16:47:05 +0000 (16:47 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 8 Jul 2006 16:47:05 +0000 (16:47 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4173 e03df62e-2008-0410-955e-edbf42e46eb7

src/mode.cpp

index abcf4a671a768324d775f1336d4fa680ddfa0726..320ba61952c6614d674f5198effb3b142e0fe849 100644 (file)
@@ -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];