Changeset da3b536 for root_commands.c


Ignore:
Timestamp:
2006-05-23T08:09:16Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a9ca7dd
Parents:
226fce1
Message:

Added bim_ functions for block/allow list management to keep gc->permit/deny
up-to-date at run-time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r226fce1 rda3b536  
    558558        else
    559559        {
    560                 gc->prpl->rem_permit( gc, cmd[2] );
    561                 gc->prpl->add_deny( gc, cmd[2] );
    562                 irc_usermsg( irc, "Buddy `%s' moved from your permit- to your deny-list", cmd[2] );
     560                bim_rem_allow( gc, cmd[2] );
     561                bim_add_block( gc, cmd[2] );
     562                irc_usermsg( irc, "Buddy `%s' moved from your allow- to your block-list", cmd[2] );
    563563        }
    564564}
     
    617617        else
    618618        {
    619                 gc->prpl->rem_deny( gc, cmd[2] );
    620                 gc->prpl->add_permit( gc, cmd[2] );
    621                
    622                 irc_usermsg( irc, "Buddy `%s' moved from your deny- to your permit-list", cmd[2] );
     619                bim_rem_block( gc, cmd[2] );
     620                bim_add_allow( gc, cmd[2] );
     621               
     622                irc_usermsg( irc, "Buddy `%s' moved from your block- to your allow-list", cmd[2] );
    623623        }
    624624}
Note: See TracChangeset for help on using the changeset viewer.