summaryrefslogtreecommitdiff
path: root/src/modules/cs_enforce.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_enforce.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_enforce.c')
-rw-r--r--src/modules/cs_enforce.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c
index 4c9d38065..5151226f8 100644
--- a/src/modules/cs_enforce.c
+++ b/src/modules/cs_enforce.c
@@ -1,12 +1,12 @@
/* cs_enforce - Add a /cs ENFORCE command to enforce various set
* options and channelmodes on a channel.
- *
+ *
* (C) 2003-2008 Anope Team
* Contact us at info@anope.org
- *
+ *
* Included in the Anope module pack since Anope 1.7.9
* Anope Coder: GeniusDex <geniusdex@anope.org>
- *
+ *
* Please read COPYING and README for further details.
*
* Send any bug reports to the Anope Coder, as he will be able
@@ -120,7 +120,7 @@ void do_enforce_restricted(Channel * c)
if (check_access(u, c->ci, CA_NOJOIN)) {
get_idealban(ci, u, mask, sizeof(mask));
reason = getstring(u->na, CHAN_NOT_ALLOWED_TO_JOIN);
- anope_SendMode(whosends(ci), ci->name, "+b %s %lu", mask,
+ ircdproto->SendMode(whosends(ci), ci->name, "+b %s %lu", mask,
time(NULL));
anope_SendKick(whosends(ci), ci->name, u->nick, "%s", reason);
av[0] = ci->name;
@@ -160,7 +160,7 @@ void do_enforce_cmode_R(Channel * c)
reason = getstring(u->na, CHAN_NOT_ALLOWED_TO_JOIN);
if (((cbm = &cbmodes['R'])->flag == 0)
|| !(c->mode & cbm->flag))
- anope_SendMode(whosends(ci), ci->name, "+b %s %lu", mask,
+ ircdproto->SendMode(whosends(ci), ci->name, "+b %s %lu", mask,
time(NULL));
anope_SendKick(whosends(ci), ci->name, u->nick, "%s", reason);
av[0] = ci->name;