summaryrefslogtreecommitdiff
path: root/src/modules/cs_tban.c
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 18:26:56 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 18:26:56 +0000
commit0ded22502384bd69c45fbc2ecd9d99172ff51910 (patch)
treeccb656e76d66ea2c46125231daf95a8dff52a9f6 /src/modules/cs_tban.c
parenta29d23a06e3ba98c793cffecae1bf682f251178d (diff)
Replaced anope_SendMode() with direct call to SendMode() in IRCDProto class.
Also added SendModeInternal() function to IRCDProto class, now SendMode() is a stub to handle varargs. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1329 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/cs_tban.c')
-rw-r--r--src/modules/cs_tban.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c
index 4d7741f3a..2b225207e 100644
--- a/src/modules/cs_tban.c
+++ b/src/modules/cs_tban.c
@@ -141,7 +141,7 @@ void addBan(Channel * c, time_t timeout, char *banmask)
av[0] = "+b";
av[1] = banmask;
- anope_SendMode(whosends(c->ci), c->name, "+b %s", av[1]);
+ ircdproto->SendMode(whosends(c->ci), c->name, "+b %s", av[1]);
chan_set_modes(s_ChanServ, c, 2, av, 1);
moduleAddCallback("tban", time(NULL) + timeout, delBan, 2, cb);
@@ -156,7 +156,7 @@ int delBan(int argc, char **argv)
av[1] = argv[1];
if ((c = findchan(argv[0])) && c->ci) {
- anope_SendMode(whosends(c->ci), c->name, "-b %s", av[1]);
+ ircdproto->SendMode(whosends(c->ci), c->name, "-b %s", av[1]);
chan_set_modes(s_ChanServ, c, 2, av, 1);
}