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/modules | |
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/modules')
-rw-r--r-- | src/modules/cs_appendtopic.c | 2 | ||||
-rw-r--r-- | src/modules/cs_enforce.c | 4 | ||||
-rw-r--r-- | src/modules/cs_tban.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c index 526478784..50e8af1d3 100644 --- a/src/modules/cs_appendtopic.c +++ b/src/modules/cs_appendtopic.c @@ -148,7 +148,7 @@ int my_cs_appendtopic(User * u) if (ircd->join2set) { if (whosends(ci) == s_ChanServ) { anope_cmd_join(s_ChanServ, c->name, c->creation_time); - anope_cmd_mode(NULL, c->name, "+o %s", s_ChanServ); + anope_SendMode(NULL, c->name, "+o %s", s_ChanServ); } } anope_cmd_topic(whosends(ci), c->name, u->nick, topic, c->topic_time); diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c index c625d326d..8782f89ec 100644 --- a/src/modules/cs_enforce.c +++ b/src/modules/cs_enforce.c @@ -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_cmd_mode(whosends(ci), ci->name, "+b %s %lu", mask, + anope_SendMode(whosends(ci), ci->name, "+b %s %lu", mask, time(NULL)); anope_cmd_kick(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_cmd_mode(whosends(ci), ci->name, "+b %s %lu", mask, + anope_SendMode(whosends(ci), ci->name, "+b %s %lu", mask, time(NULL)); anope_cmd_kick(whosends(ci), ci->name, u->nick, "%s", reason); av[0] = ci->name; diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c index 691bfbf42..4d7741f3a 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_cmd_mode(whosends(c->ci), c->name, "+b %s", av[1]); + anope_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_cmd_mode(whosends(c->ci), c->name, "-b %s", av[1]); + anope_SendMode(whosends(c->ci), c->name, "-b %s", av[1]); chan_set_modes(s_ChanServ, c, 2, av, 1); } |