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 | |
| 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')
73 files changed, 329 insertions, 329 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index fe2c0e1ce..5195b23cf 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -108,7 +108,7 @@ void BotInfo::UnAssign(User *u, ChannelInfo *ci) send_event(EVENT_BOT_UNASSIGN, 2, ci->name, ci->bi->nick); if (u && ci->c && ci->c->usercount >= BSMinUsers) - anope_cmd_part(ci->bi->nick, ci->name, "UNASSIGN from %s", u->nick); + anope_SendPart(ci->bi->nick, ci->name, "UNASSIGN from %s", u->nick); ci->bi->chancount--; ci->bi = NULL; diff --git a/src/botserv.c b/src/botserv.c index b1686fcdc..8d529af0e 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -491,7 +491,7 @@ void load_bs_dbase(void) restore_db(f); \ log_perror("Write error on %s", BotDBName); \ if (time(NULL) - lastwarn > WarningTimeout) { \ - anope_cmd_global(NULL, "Write error on %s: %s", BotDBName, \ + anope_SendGlobops(NULL, "Write error on %s: %s", BotDBName, \ strerror(errno)); \ lastwarn = time(NULL); \ } \ @@ -750,7 +750,7 @@ void bot_join(ChannelInfo * ci) "%s invited %s into the channel.", ci->bi->nick, ci->bi->nick); } - anope_cmd_join(ci->bi->nick, ci->c->name, ci->c->creation_time); + anope_SendJoin(ci->bi->nick, ci->c->name, ci->c->creation_time); anope_SendBotOp(ci->bi->nick, ci->c->name); send_event(EVENT_BOT_JOIN, 2, ci->name, ci->bi->nick); } diff --git a/src/channels.c b/src/channels.c index 7be1dfbbd..7a72a29c0 100644 --- a/src/channels.c +++ b/src/channels.c @@ -49,7 +49,7 @@ void chan_deluser(User * user, Channel * c) c->usercount--; if (s_BotServ && c->ci && c->ci->bi && c->usercount == BSMinUsers - 1) { - anope_cmd_part(c->ci->bi->nick, c->name, NULL); + anope_SendPart(c->ci->bi->nick, c->name, NULL); } if (!c->users) @@ -790,7 +790,7 @@ void do_sjoin(const char *source, int ac, const char **av) } if (c->ci && c->ci->bi) { /* This is ugly, but it always works */ - anope_cmd_part(c->ci->bi->nick, c->name, "TS reop"); + anope_SendPart(c->ci->bi->nick, c->name, "TS reop"); bot_join(c->ci); } /* XXX simple modes and bans */ 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; } diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index cce84d789..eba82f5f9 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -267,7 +267,7 @@ int do_bot(User * u) /* The new nick is really different, so we remove the Q line for the old nick. */ if (ircd->sqline) { - anope_cmd_unsqline(bi->nick); + anope_SendSQLineDel(bi->nick); } /* We check whether user with this nick is online, and kill it if so */ @@ -324,7 +324,7 @@ int do_bot(User * u) "Quit: Help! I'm being deleted by %s!", u->nick); if (ircd->sqline) { - anope_cmd_unsqline(bi->nick); + anope_SendSQLineDel(bi->nick); } delete bi; diff --git a/src/core/cs_drop.c b/src/core/cs_drop.c index 43305c158..61aad543a 100644 --- a/src/core/cs_drop.c +++ b/src/core/cs_drop.c @@ -104,7 +104,7 @@ int do_drop(User * u) } if (ircd->chansqline && (ci->flags & CI_VERBOTEN)) { - anope_cmd_unsqline(ci->name); + anope_SendSQLineDel(ci->name); } alog("%s: Channel %s dropped by %s!%s@%s (founder: %s)", @@ -117,7 +117,7 @@ int do_drop(User * u) * drop the channel before issuing the wallops. */ if (WallDrop && is_servadmin && level < ACCESS_FOUNDER) - anope_cmd_global(s_ChanServ, + anope_SendGlobops(s_ChanServ, "\2%s\2 used DROP on channel \2%s\2", u->nick, chan); diff --git a/src/core/cs_forbid.c b/src/core/cs_forbid.c index ac9073185..599f51605 100644 --- a/src/core/cs_forbid.c +++ b/src/core/cs_forbid.c @@ -118,7 +118,7 @@ int do_forbid(User * u) } if (WallForbid) - anope_cmd_global(s_ChanServ, + anope_SendGlobops(s_ChanServ, "\2%s\2 used FORBID on channel \2%s\2", u->nick, ci->name); diff --git a/src/core/cs_getpass.c b/src/core/cs_getpass.c index df2ce9b2d..de699e135 100644 --- a/src/core/cs_getpass.c +++ b/src/core/cs_getpass.c @@ -88,7 +88,7 @@ int do_getpass(User * u) alog("%s: %s!%s@%s used GETPASS on %s", s_ChanServ, u->nick, u->username, u->host, ci->name); if (WallGetpass) { - anope_cmd_global(s_ChanServ, + anope_SendGlobops(s_ChanServ, "\2%s\2 used GETPASS on channel \2%s\2", u->nick, chan); } diff --git a/src/core/cs_invite.c b/src/core/cs_invite.c index 60e92fb80..5e538d791 100644 --- a/src/core/cs_invite.c +++ b/src/core/cs_invite.c @@ -84,7 +84,7 @@ int do_invite(User * u) } else if (!u || !check_access(u, ci, CA_INVITE)) { notice_lang(s_ChanServ, u, PERMISSION_DENIED); } else { - anope_cmd_invite(whosends(ci), chan, u->nick); + anope_SendInvite(whosends(ci), chan, u->nick); } return MOD_CONT; } diff --git a/src/core/cs_set.c b/src/core/cs_set.c index 0616e933b..67c1b5f99 100644 --- a/src/core/cs_set.c +++ b/src/core/cs_set.c @@ -393,7 +393,7 @@ int do_set_password(User * u, ChannelInfo * ci, char *param) alog("%s: %s!%s@%s set password as Services admin for %s", s_ChanServ, u->nick, u->username, u->host, ci->name); if (WallSetpass) - anope_cmd_global(s_ChanServ, + anope_SendGlobops(s_ChanServ, "\2%s\2 set password as Services admin for channel \2%s\2", u->nick, ci->name); } else { diff --git a/src/core/cs_suspend.c b/src/core/cs_suspend.c index b379d8e24..855e6b531 100644 --- a/src/core/cs_suspend.c +++ b/src/core/cs_suspend.c @@ -133,7 +133,7 @@ int do_suspend(User * u) } if (WallForbid) - anope_cmd_global(s_ChanServ, + anope_SendGlobops(s_ChanServ, "\2%s\2 used SUSPEND on channel \2%s\2", u->nick, ci->name); @@ -194,7 +194,7 @@ int do_unsuspend(User * u) } if (WallForbid) - anope_cmd_global(s_ChanServ, + anope_SendGlobops(s_ChanServ, "\2%s\2 used UNSUSPEND on channel \2%s\2", u->nick, ci->name); diff --git a/src/core/cs_topic.c b/src/core/cs_topic.c index 0a7854f69..a8c9533a7 100644 --- a/src/core/cs_topic.c +++ b/src/core/cs_topic.c @@ -103,7 +103,7 @@ int do_cs_topic(User * u) s_ChanServ, u->nick, u->username, u->host, c->name); 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); } } @@ -111,7 +111,7 @@ int do_cs_topic(User * u) 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); } } } diff --git a/src/core/ns_drop.c b/src/core/ns_drop.c index e191a8395..416ecd58d 100644 --- a/src/core/ns_drop.c +++ b/src/core/ns_drop.c @@ -88,7 +88,7 @@ int do_drop(User * u) if (readonly) notice_lang(s_NickServ, u, READ_ONLY_MODE); if (WallDrop) - anope_cmd_global(s_NickServ, + anope_SendGlobops(s_NickServ, "\2%s\2 used DROP on \2%s\2", u->nick, nick); alog("%s: %s!%s@%s dropped nickname %s (e-mail: %s)", @@ -120,7 +120,7 @@ int do_drop(User * u) notice_lang(s_NickServ, u, READ_ONLY_MODE); if (ircd->sqline && (na->status & NS_VERBOTEN)) { - anope_cmd_unsqline(na->nick); + anope_SendSQLineDel(na->nick); } alog("%s: %s!%s@%s dropped nickname %s (group %s) (e-mail: %s)", @@ -132,7 +132,7 @@ int do_drop(User * u) if (!is_mine) { if (WallDrop) - anope_cmd_global(s_NickServ, "\2%s\2 used DROP on \2%s\2", + anope_SendGlobops(s_NickServ, "\2%s\2 used DROP on \2%s\2", u->nick, nick); notice_lang(s_NickServ, u, NICK_X_DROPPED, nick); } else { diff --git a/src/core/ns_forbid.c b/src/core/ns_forbid.c index 6612be06e..ce26af71e 100644 --- a/src/core/ns_forbid.c +++ b/src/core/ns_forbid.c @@ -119,7 +119,7 @@ int do_forbid(User * u) } if (WallForbid) - anope_cmd_global(s_NickServ, "\2%s\2 used FORBID on \2%s\2", + anope_SendGlobops(s_NickServ, "\2%s\2 used FORBID on \2%s\2", u->nick, nick); alog("%s: %s set FORBID for nick %s", s_NickServ, u->nick, nick); diff --git a/src/core/ns_getpass.c b/src/core/ns_getpass.c index 938b75f8d..6079ca2ba 100644 --- a/src/core/ns_getpass.c +++ b/src/core/ns_getpass.c @@ -80,7 +80,7 @@ int do_getpass(User * u) alog("%s: %s!%s@%s used GETPASS on %s", s_NickServ, u->nick, u->username, u->host, nick); if (WallGetpass) - anope_cmd_global(s_NickServ, + anope_SendGlobops(s_NickServ, "\2%s\2 used GETPASS on \2%s\2", u->nick, nick); notice_lang(s_NickServ, u, NICK_GETPASS_PASSCODE_IS, nick, @@ -100,7 +100,7 @@ int do_getpass(User * u) alog("%s: %s!%s@%s used GETPASS on %s", s_NickServ, u->nick, u->username, u->host, nick); if (WallGetpass) - anope_cmd_global(s_NickServ, "\2%s\2 used GETPASS on \2%s\2", + anope_SendGlobops(s_NickServ, "\2%s\2 used GETPASS on \2%s\2", u->nick, nick); notice_lang(s_NickServ, u, NICK_GETPASS_PASSWORD_IS, nick, tmp_pass); diff --git a/src/core/ns_saset.c b/src/core/ns_saset.c index 88db0526b..7261a55ce 100644 --- a/src/core/ns_saset.c +++ b/src/core/ns_saset.c @@ -265,7 +265,7 @@ int do_saset_password(User * u, NickCore * nc, char *param) u->nick, u->username, u->host, nc->display, (nc->email ? nc->email : "none")); if (WallSetpass) - anope_cmd_global(s_NickServ, + anope_SendGlobops(s_NickServ, "\2%s\2 used SASET PASSWORD on \2%s\2", u->nick, nc->display); return MOD_CONT; diff --git a/src/core/ns_suspend.c b/src/core/ns_suspend.c index 1cf9f7030..53823f75f 100644 --- a/src/core/ns_suspend.c +++ b/src/core/ns_suspend.c @@ -119,7 +119,7 @@ int do_suspend(User * u) } if (WallForbid) - anope_cmd_global(s_NickServ, "\2%s\2 used SUSPEND on \2%s\2", + anope_SendGlobops(s_NickServ, "\2%s\2 used SUSPEND on \2%s\2", u->nick, nick); alog("%s: %s set SUSPEND for nick %s", s_NickServ, u->nick, nick); @@ -172,7 +172,7 @@ int do_unsuspend(User * u) na->nc->flags &= ~NI_SUSPENDED; if (WallForbid) - anope_cmd_global(s_NickServ, "\2%s\2 used UNSUSPEND on \2%s\2", + anope_SendGlobops(s_NickServ, "\2%s\2 used UNSUSPEND on \2%s\2", u->nick, nick); alog("%s: %s set UNSUSPEND for nick %s", s_NickServ, u->nick, diff --git a/src/core/os_akill.c b/src/core/os_akill.c index 689e00b43..d2250fef2 100644 --- a/src/core/os_akill.c |
