aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-05-23 10:09:16 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-05-23 10:09:16 +0200
commitda3b53657c8e554fc8c28c8ef61ef44492da24dd (patch)
tree35c434510dec74965229340f9b804511a5a608b5 /root_commands.c
parent226fce105c1189bde1aa321b494494d49b463e90 (diff)
Added bim_ functions for block/allow list management to keep gc->permit/deny
up-to-date at run-time.
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/root_commands.c b/root_commands.c
index 24423958..0e12e9ab 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -557,9 +557,9 @@ static void cmd_block( irc_t *irc, char **cmd )
}
else
{
- gc->prpl->rem_permit( gc, cmd[2] );
- gc->prpl->add_deny( gc, cmd[2] );
- irc_usermsg( irc, "Buddy `%s' moved from your permit- to your deny-list", cmd[2] );
+ bim_rem_allow( gc, cmd[2] );
+ bim_add_block( gc, cmd[2] );
+ irc_usermsg( irc, "Buddy `%s' moved from your allow- to your block-list", cmd[2] );
}
}
@@ -616,10 +616,10 @@ static void cmd_allow( irc_t *irc, char **cmd )
}
else
{
- gc->prpl->rem_deny( gc, cmd[2] );
- gc->prpl->add_permit( gc, cmd[2] );
+ bim_rem_block( gc, cmd[2] );
+ bim_add_allow( gc, cmd[2] );
- irc_usermsg( irc, "Buddy `%s' moved from your deny- to your permit-list", cmd[2] );
+ irc_usermsg( irc, "Buddy `%s' moved from your block- to your allow-list", cmd[2] );
}
}