diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 08:29:56 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 08:29:56 +0000 |
commit | 5d695b7bf69eada724742fe7cbdf92b609a0858e (patch) | |
tree | c0cdb47b73c6b1176d7c3d523c60fc7675e4a3d3 /src/channels.c | |
parent | c8d4ff56a17d55ad886096c85e03f6ea12734f5d (diff) |
Guest nicks, MODE.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1301 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 e7ac7940d..d787d1498 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_cmd_mode(whosends(chan->ci), chan->name, merge_args(ac, av)); + anope_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_cmd_mode(bi->nick, chan->name, "+%c %s", + anope_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_cmd_mode(bi->nick, chan->name, "-b %s", mask); + anope_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_cmd_mode(whosends(ci), c->name, "%s%s", modebuf, userbuf); + anope_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_cmd_mode(s_OperServ, c->name, "%s", modes); + anope_SendMode(s_OperServ, c->name, "%s", modes); chan_set_modes(s_OperServ, c, ac, av, 1); } } |