diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 08:39:28 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 08:39:28 +0000 |
| commit | 809ed7c2c04f2c004be3f8f7d29ff3b4f0e3e0f7 (patch) | |
| tree | 867a1c3ddb9ab32dde2449b1632d2f4f772c6285 /src/chanserv.c | |
| parent | bd56c0fb93b06c1d5f58f83089f12eda5c9e82d9 (diff) | |
Convert various to new name scheme.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1306 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/chanserv.c')
| -rw-r--r-- | src/chanserv.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/chanserv.c b/src/chanserv.c index fd4d495fa..7f3570b3d 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -611,7 +611,7 @@ void load_cs_dbase(void) restore_db(f); \ log_perror("Write error on %s", ChanDBName); \ if (time(NULL) - lastwarn > WarningTimeout) { \ - anope_cmd_global(NULL, "Write error on %s: %s", ChanDBName, \ + anope_SendGlobops(NULL, "Write error on %s: %s", ChanDBName, \ strerror(errno)); \ lastwarn = time(NULL); \ } \ @@ -876,7 +876,7 @@ void check_modes(Channel * c) /* Check for mode bouncing */ if (c->server_modecount >= 3 && c->chanserv_modecount >= 3) { - anope_cmd_global(NULL, + anope_SendGlobops(NULL, "Warning: unable to set modes on channel %s. " "Are your servers' U:lines configured correctly?", c->name); @@ -1244,7 +1244,7 @@ static void timeout_leave(Timeout * to) if (ci) /* Check cos the channel may be dropped in the meantime */ ci->flags &= ~CI_INHABIT; - anope_cmd_part(s_ChanServ, chan, NULL); + anope_SendPart(s_ChanServ, chan, NULL); free(to->data); } @@ -1352,7 +1352,7 @@ int check_kick(User * user, const char *chan, time_t chants) * c may be NULL even if it exists */ if ((!(c = findchan(chan)) || c->usercount == 0) && !(ci->flags & CI_INHABIT)) { - anope_cmd_join(s_ChanServ, chan, (c ? c->creation_time : chants)); + anope_SendJoin(s_ChanServ, chan, (c ? c->creation_time : chants)); /* Lets hide the channel from /list just incase someone does /list * while we are here. - katsklaw */ @@ -1448,7 +1448,7 @@ void restore_topic(const char *chan) } if (ircd->join2set) { if (whosends(ci) == s_ChanServ) { - anope_cmd_join(s_ChanServ, chan, c->creation_time); + anope_SendJoin(s_ChanServ, chan, c->creation_time); anope_SendMode(NULL, chan, "+o %s", s_ChanServ); } } @@ -1456,7 +1456,7 @@ void restore_topic(const char *chan) c->topic ? c->topic : "", c->topic_time); if (ircd->join2set) { if (whosends(ci) == s_ChanServ) { - anope_cmd_part(s_ChanServ, c->name, NULL); + anope_SendPart(s_ChanServ, c->name, NULL); } } } @@ -1510,7 +1510,7 @@ int check_topiclock(Channel * c, time_t topic_time) if (ircd->join2set) { if (whosends(ci) == s_ChanServ) { - anope_cmd_join(s_ChanServ, c->name, c->creation_time); + anope_SendJoin(s_ChanServ, c->name, c->creation_time); anope_SendMode(NULL, c->name, "+o %s", s_ChanServ); } } @@ -1520,7 +1520,7 @@ int check_topiclock(Channel * c, time_t topic_time) if (ircd->join2set) { if (whosends(ci) == s_ChanServ) { - anope_cmd_part(s_ChanServ, c->ci->name, NULL); + anope_SendPart(s_ChanServ, c->ci->name, NULL); } } return 1; @@ -1778,7 +1778,7 @@ int delchan(ChannelInfo * ci) } if (ci->c) { if (ci->bi && ci->c->usercount >= BSMinUsers) { - anope_cmd_part(ci->bi->nick, ci->c->name, NULL); + anope_SendPart(ci->bi->nick, ci->c->name, NULL); } ci->c->ci = NULL; } |
