mirror of
https://github.com/anope/anope.git
synced 2026-07-09 10:03:14 +02:00
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
This commit is contained in:
@@ -148,7 +148,7 @@ int my_cs_appendtopic(User * u)
|
||||
if (ircd->join2set) {
|
||||
if (whosends(ci) == s_ChanServ) {
|
||||
anope_SendJoin(s_ChanServ, c->name, c->creation_time);
|
||||
anope_SendMode(NULL, c->name, "+o %s", s_ChanServ);
|
||||
ircdproto->SendMode(NULL, c->name, "+o %s", s_ChanServ);
|
||||
}
|
||||
}
|
||||
ircdproto->SendTopic(whosends(ci), c->name, u->nick, topic, c->topic_time);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user