diff options
| author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 18:26:56 +0000 |
|---|---|---|
| committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 18:26:56 +0000 |
| commit | 0ded22502384bd69c45fbc2ecd9d99172ff51910 (patch) | |
| tree | ccb656e76d66ea2c46125231daf95a8dff52a9f6 /src/channels.c | |
| parent | a29d23a06e3ba98c793cffecae1bf682f251178d (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/channels.c')
| -rw-r--r-- | src/channels.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/channels.c b/src/channels.c index ce4dd5ccd..3fe38c141 100644 --- a/src/channels.c +++ b/src/channels.c @@ -190,7 +190,7 @@ void chan_set_modes(const char *source, Channel * chan, int ac, const char **av, } /* Set the resulting mode buffer */ - anope_SendMode(whosends(chan->ci), chan->name, merge_args(ac, av)); + ircdproto->SendMode(whosends(chan->ci), chan->name, merge_args(ac, av)); return; } @@ -225,7 +225,7 @@ void chan_set_modes(const char *source, Channel * chan, int ac, const char **av, if ((cum->flags & CUF_PROTECT_BOTSERV) && !add) { if ((bi = findbot(*av))) { if (!botmode || botmode != mode) { - anope_SendMode(bi->nick, chan->name, "+%c %s", + ircdproto->SendMode(bi->nick, chan->name, "+%c %s", mode, bi->nick); botmode = mode; continue; @@ -1285,7 +1285,7 @@ void add_ban(Channel * chan, const char *mask) BotInfo *bi = chan->ci->bi; if (entry_match(ban, bi->nick, bi->user, bi->host, 0)) { - anope_SendMode(bi->nick, chan->name, "-b %s", mask); + ircdproto->SendMode(bi->nick, chan->name, "-b %s", mask); entry_delete(chan->bans, ban); return; } @@ -1508,7 +1508,7 @@ void chan_set_correct_modes(User * user, Channel * c, int give_modes) if (!add_modes && !rem_modes) return; - anope_SendMode(whosends(ci), c->name, "%s%s", modebuf, userbuf); + ircdproto->SendMode(whosends(ci), c->name, "%s%s", modebuf, userbuf); if (add_modes > 0) chan_set_user_status(c, user, add_modes); if (rem_modes > 0) @@ -1883,7 +1883,7 @@ void do_mass_mode(char *modes) free(myModes); return; } else { - anope_SendMode(s_OperServ, c->name, "%s", modes); + ircdproto->SendMode(s_OperServ, c->name, "%s", modes); chan_set_modes(s_OperServ, c, ac, av, 1); } } |
