1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 06:16:38 +02:00

Convert various to new name scheme.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1306 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-10-02 08:39:28 +00:00
parent bd56c0fb93
commit 809ed7c2c0
76 changed files with 342 additions and 342 deletions
+1 -1
View File
@@ -35,7 +35,7 @@
#define s_sgline(mask, reason) anope_cmd_sgline(mask, reason)
#define s_szline(mask, reason) anope_cmd_szline(mask, reason)
#define s_unsgline(mask) anope_cmd_unsgline(mask)
#define s_unsqline(mask) anope_cmd_unsqline(mask)
#define s_unsqline(mask) anope_SendSQLineDel(mask)
#define s_unszline(mask) anope_cmd_unszline(mask)
#define s_rakill(user, host) anope_SendAkillDel(user, host)
+6 -6
View File
@@ -1123,9 +1123,9 @@ E void anope_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhos
E void anope_SendVhostDel(User *u);
E void anope_cmd_connect(); /* Connect */
E void anope_cmd_ea(); /* EA */
E void anope_cmd_global(const char *source, const char *fmt, ...); /* GLOBOPS */
E void anope_cmd_invite(const char *source, const char *chan, const char *nick); /* INVITE */
E void anope_cmd_join(const char *user, const char *channel, time_t chantime); /* JOIN */
E void anope_SendGlobops(const char *source, const char *fmt, ...); /* GLOBOPS */
E void anope_SendInvite(const char *source, const char *chan, const char *nick); /* INVITE */
E void anope_SendJoin(const char *user, const char *channel, time_t chantime); /* JOIN */
E void anope_SendKick(const char *source, const char *chan, const char *user, const char *fmt, ...); /* KICK */
E void anope_SendMode(const char *source, const char *dest, const char *fmt, ...); /* MODE */
E void anope_cmd_tmode(const char *source, const char *dest, const char *fmt, ...); /* TMODE */
@@ -1139,9 +1139,9 @@ E void anope_cmd_message(const char *source, const char *dest, const char *fmt,
E void anope_SendNoticeChanops(const char *source, const char *dest, const char *fmt, ...); /* NOTICE */
E void anope_cmd_notice(const char *source, const char *dest, const char *msg); /* NOTICE */
E void anope_SendGlobalNotice(const char *source, const char *dest, const char *msg); /* NOTICE */
E void anope_cmd_part(const char *nick, const char *chan, const char *fmt, ...); /* PART */
E void anope_SendPart(const char *nick, const char *chan, const char *fmt, ...); /* PART */
E void anope_cmd_pass(const char *pass); /* PASS */
E void anope_cmd_pong(const char *servname, const char *who); /* PONG */
E void anope_SendPong(const char *servname, const char *who); /* PONG */
E void anope_cmd_privmsg(const char *source, const char *dest, const char *fmt, ...); /* PRIVMSG */
E void anope_cmd_action(const char *source, const char *dest, const char *fmt, ...); /* PRIVMSG */
E void anope_SendGlobalPrivmsg(const char *source, const char *dest, const char *msg); /* PRIVMSG */
@@ -1168,7 +1168,7 @@ E void anope_cmd_svspart(const char *source, const char *nick,const char *chan);
E void anope_cmd_swhois(const char *source, const char *who, const char *mask); /* SWHOIS */
E void anope_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when); /* TOPIC */
E void anope_cmd_unsgline(const char *mask); /* UNSGLINE */
E void anope_cmd_unsqline(const char *user); /* UNSQLINE */
E void anope_SendSQLineDel(const char *user); /* UNSQLINE */
E void anope_cmd_unszline(const char *mask); /* UNSZLINE */
E void anope_cmd_eob(); /* EOB - end of burst */
E void anope_cmd_burst(); /* BURST - use eob to send burst 0 */
+6 -6
View File
@@ -1273,24 +1273,24 @@ class IRCDProto {
if (buf) send_cmd(source, "QUIT :%s", buf);
else send_cmd(source, "QUIT");
}
virtual void cmd_pong(const char *servname, const char *who)
virtual void SendPong(const char *servname, const char *who)
{
send_cmd(servname, "PONG %s", who);
}
virtual void cmd_join(const char *, const char *, time_t) = 0;
virtual void cmd_unsqline(const char *) = 0;
virtual void cmd_invite(const char *source, const char *chan, const char *nick)
virtual void SendJoin(const char *, const char *, time_t) = 0;
virtual void SendSQLineDel(const char *) = 0;
virtual void SendInvite(const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick) return;
send_cmd(source, "INVITE %s %s", nick, chan);
}
virtual void cmd_part(const char *nick, const char *chan, const char *buf)
virtual void SendPart(const char *nick, const char *chan, const char *buf)
{
if (!nick || !chan) return;
if (buf) send_cmd(nick, "PART %s :%s", chan, buf);
else send_cmd(nick, "PART %s", chan);
}
virtual void cmd_global(const char *source, const char *buf)
virtual void SendGlobops(const char *source, const char *buf)
{
if (!buf) return;
send_cmd(source ? source : ServerName, "GLOBOPS :%s", buf);
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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);
}
+2 -2
View File
@@ -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 */
+9 -9
View File
@@ -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;
}
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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 {
+2 -2
View File
@@ -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);
+2 -2
View File
@@ -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);
}
}
}
+3 -3
View File
@@ -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 {
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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);
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -178,7 +178,7 @@ int do_akill(User * u)
(wall_expiry == 1) ? "" : "s");
}
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"%s added an AKILL for %s (%s) (%s)",
u->nick, mask, reason, buf);
}
+1 -1
View File
@@ -118,7 +118,7 @@ int do_chankill(User * u)
cu->user->host, NULL, NULL);
}
if (WallOSAkill) {
anope_cmd_global(s_OperServ, "%s used CHANKILL on %s (%s)",
anope_SendGlobops(s_OperServ, "%s used CHANKILL on %s (%s)",
u->nick, channel, reason);
}
} else {
+1 -1
View File
@@ -99,7 +99,7 @@ int do_clearmodes(User * u)
}
if (WallOSClearmodes) {
anope_cmd_global(s_OperServ, "%s used CLEARMODES%s on %s",
anope_SendGlobops(s_OperServ, "%s used CLEARMODES%s on %s",
u->nick, all ? " ALL" : "", chan);
}
if (all) {
+1 -1
View File
@@ -105,7 +105,7 @@ int do_defcon(User * u)
notice_lang(s_OperServ, u, OPER_DEFCON_CHANGED, DefConLevel);
defcon_sendlvls(u);
alog("Defcon level changed to %d by Oper %s", newLevel, u->nick);
anope_cmd_global(s_OperServ, getstring2(NULL, OPER_DEFCON_WALL),
anope_SendGlobops(s_OperServ, getstring2(NULL, OPER_DEFCON_WALL),
u->nick, newLevel);
/* Global notice the user what is happening. Also any Message that
the Admin would like to add. Set in config file. */
+1 -1
View File
@@ -75,7 +75,7 @@ int do_global(User * u)
return MOD_CONT;
}
if (WallOSGlobal)
anope_cmd_global(s_OperServ, "\2%s\2 just used GLOBAL command.",
anope_SendGlobops(s_OperServ, "\2%s\2 just used GLOBAL command.",
u->nick);
oper_global(u->nick, "%s", msg);
return MOD_CONT;
+1 -1
View File
@@ -80,7 +80,7 @@ int do_jupe(User * u)
anope_cmd_jupe(jserver, u->nick, reason);
if (WallOSJupe)
anope_cmd_global(s_OperServ, "\2%s\2 used JUPE on \2%s\2",
anope_SendGlobops(s_OperServ, "\2%s\2 used JUPE on \2%s\2",
u->nick, jserver);
}
}
+1 -1
View File
@@ -87,7 +87,7 @@ int do_os_kick(User * u)
}
anope_SendKick(s_OperServ, chan, nick, "%s (%s)", u->nick, s);
if (WallOSKick)
anope_cmd_global(s_OperServ, "%s used KICK on %s/%s", u->nick,
anope_SendGlobops(s_OperServ, "%s used KICK on %s/%s", u->nick,
nick, chan);
argv[0] = sstrdup(chan);
argv[1] = sstrdup(nick);
+1 -1
View File
@@ -95,7 +95,7 @@ int do_os_mode(User * u)
free(av);
if (WallOSMode)
anope_cmd_global(s_OperServ, "%s used MODE %s on %s", u->nick,
anope_SendGlobops(s_OperServ, "%s used MODE %s on %s", u->nick,
modes, chan);
}
return MOD_CONT;
+1 -1
View File
@@ -84,7 +84,7 @@ int do_noop(User * u)
snprintf(reason, sizeof(reason), "NOOP command used by %s",
u->nick);
if (WallOSNoOp)
anope_cmd_global(s_OperServ, "\2%s\2 used NOOP on \2%s\2",
anope_SendGlobops(s_OperServ, "\2%s\2 used NOOP on \2%s\2",
u->nick, server);
notice_lang(s_OperServ, u, OPER_NOOP_SET, server);
+2 -2
View File
@@ -94,12 +94,12 @@ int do_operoline(User * u)
common_svsmode(u2, "+o", NULL);
notice_lang(s_OperServ, u2, OPER_OLINE_IRCOP);
notice_lang(s_OperServ, u, OPER_OLINE_SUCCESS, flags, nick);
anope_cmd_global(s_OperServ, "\2%s\2 used OLINE for %s",
anope_SendGlobops(s_OperServ, "\2%s\2 used OLINE for %s",
u->nick, nick);
} else if (u2 && flags[0] == '-') {
anope_cmd_svso(s_OperServ, nick, flags);
notice_lang(s_OperServ, u, OPER_OLINE_SUCCESS, flags, nick);
anope_cmd_global(s_OperServ, "\2%s\2 used OLINE for %s",
anope_SendGlobops(s_OperServ, "\2%s\2 used OLINE for %s",
u->nick, nick);
} else
syntax_error(s_OperServ, u, "OLINE", OPER_OLINE_SYNTAX);
+1 -1
View File
@@ -67,7 +67,7 @@ int do_raw(User * u)
char *kw = strtok(text, " ");
while (kw && *kw == ':')
kw = strtok(NULL, " ");
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"\2%s\2 used RAW command for \2%s\2",
u->nick,
(kw ? kw : "\2non RFC compliant message\2"));
+4 -4
View File
@@ -187,7 +187,7 @@ int do_set(User * u)
if (LogChannel && (stricmp(setting, "on") == 0)) {
if (ircd->join2msg) {
c = findchan(LogChannel);
anope_cmd_join(s_GlobalNoticer, LogChannel, c ? c->creation_time : time(NULL));
anope_SendJoin(s_GlobalNoticer, LogChannel, c ? c->creation_time : time(NULL));
}
logchan = 1;
alog("Now sending log messages to %s", LogChannel);
@@ -195,7 +195,7 @@ int do_set(User * u)
} else if (LogChannel && (stricmp(setting, "off") == 0)) {
alog("No longer sending log messages to a channel");
if (ircd->join2msg) {
anope_cmd_part(s_GlobalNoticer, LogChannel, NULL);
anope_SendPart(s_GlobalNoticer, LogChannel, NULL);
}
logchan = 0;
notice_lang(s_OperServ, u, OPER_SET_LOGCHAN_OFF);
@@ -214,14 +214,14 @@ int do_set(User * u)
u->isSuperAdmin = 1;
notice_lang(s_OperServ, u, OPER_SUPER_ADMIN_ON);
alog("%s: %s is a SuperAdmin ", s_OperServ, u->nick);
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
getstring2(NULL, OPER_SUPER_ADMIN_WALL_ON),
u->nick);
} else if (stricmp(setting, "off") == 0) {
u->isSuperAdmin = 0;
notice_lang(s_OperServ, u, OPER_SUPER_ADMIN_OFF);
alog("%s: %s is no longer a SuperAdmin", s_OperServ, u->nick);
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
getstring2(NULL, OPER_SUPER_ADMIN_WALL_OFF),
u->nick);
} else {
+1 -1
View File
@@ -162,7 +162,7 @@ int do_sgline(User * u)
(wall_expiry == 1) ? "" : "s");
}
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"%s added an SGLINE for %s (%s)", u->nick,
mask, buf);
}
+1 -1
View File
@@ -157,7 +157,7 @@ int do_sqline(User * u)
(wall_expiry == 1) ? "" : "s");
}
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"%s added an SQLINE for %s (%s)", u->nick,
mask, buf);
}
+1 -1
View File
@@ -117,7 +117,7 @@ int do_svsnick(User * u)
notice_lang(s_OperServ, u, NICK_X_FORBIDDEN, newnick);
} else {
notice_lang(s_OperServ, u, OPER_SVSNICK_NEWNICK, nick, newnick);
anope_cmd_global(s_OperServ, "%s used SVSNICK to change %s to %s",
anope_SendGlobops(s_OperServ, "%s used SVSNICK to change %s to %s",
u->nick, nick, newnick);
anope_cmd_svsnick(nick, newnick, time(NULL));
}
+1 -1
View File
@@ -154,7 +154,7 @@ int do_szline(User * u)
(wall_expiry == 1) ? "" : "s");
}
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"%s added an SZLINE for %s (%s)", u->nick,
mask, buf);
}
+1 -1
View File
@@ -109,7 +109,7 @@ int do_operumodes(User * u)
notice_lang(s_OperServ, u2, OPER_UMODE_CHANGED, u->nick);
if (WallOSMode)
anope_cmd_global(s_OperServ, "\2%s\2 used UMODE on %s",
anope_SendGlobops(s_OperServ, "\2%s\2 used UMODE on %s",
u->nick, nick);
}
return MOD_CONT;
+5 -5
View File
@@ -93,7 +93,7 @@ static dbFILE *open_db_read(const char *service, const char *filename)
#ifndef NOT_MAIN
log_perror("Can't read %s database %s", service, filename);
if (time(NULL) - lastwarn > WarningTimeout) {
anope_cmd_global(NULL,
anope_SendGlobops(NULL,
"Write error on %s: Memory allocation failed",
filename);
lastwarn = time(NULL);
@@ -111,7 +111,7 @@ static dbFILE *open_db_read(const char *service, const char *filename)
log_perror("Can not read %s database %s", service,
f->filename);
if (time(NULL) - lastwarn > WarningTimeout) {
anope_cmd_global(NULL, "Write error on %s: %s", f->filename,
anope_SendGlobops(NULL, "Write error on %s: %s", f->filename,
strerror(errno));
lastwarn = time(NULL);
}
@@ -198,7 +198,7 @@ static dbFILE *open_db_write(const char *service, const char *filename,
static int walloped = 0;
if (!walloped) {
walloped++;
anope_cmd_global(NULL, "Can not back up %s database %s",
anope_SendGlobops(NULL, "Can not back up %s database %s",
service, filename);
}
#ifdef _WIN32
@@ -248,7 +248,7 @@ static dbFILE *open_db_write(const char *service, const char *filename,
static int walloped = 0;
if (!walloped) {
walloped++;
anope_cmd_global(NULL, "Can't write to %s database %s",
anope_SendGlobops(NULL, "Can't write to %s database %s",
service, filename);
}
errno = errno_save;
@@ -587,7 +587,7 @@ static void rename_database(char *name, char *ext)
snprintf(destpath, sizeof(destpath), "backups/%s.%s", name, ext);
if (rename(name, destpath) != 0) {
alog("Backup of %s failed.", name);
anope_cmd_global(s_OperServ, "WARNING! Backup of %s failed.",
anope_SendGlobops(s_OperServ, "WARNING! Backup of %s failed.",
name);
}
}
+7 -7
View File
@@ -104,7 +104,7 @@ HostCore *createHostCorelist(HostCore * next, char *nick, char *vIdent,
next = (HostCore *)malloc(sizeof(HostCore));
if (next == NULL) {
anope_cmd_global(s_HostServ,
anope_SendGlobops(s_HostServ,
"Unable to allocate memory to create the vHost LL, problems i sense..");
} else {
next->nick = (char *)malloc(sizeof(char) * strlen(nick) + 1);
@@ -114,7 +114,7 @@ HostCore *createHostCorelist(HostCore * next, char *nick, char *vIdent,
next->vIdent = (char *)malloc(sizeof(char) * strlen(vIdent) + 1);
if ((next->nick == NULL) || (next->vHost == NULL)
|| (next->creator == NULL)) {
anope_cmd_global(s_HostServ,
anope_SendGlobops(s_HostServ,
"Unable to allocate memory to create the vHost LL, problems i sense..");
return NULL;
}
@@ -123,7 +123,7 @@ HostCore *createHostCorelist(HostCore * next, char *nick, char *vIdent,
strcpy(next->creator, creator);
if (vIdent) {
if ((next->vIdent == NULL)) {
anope_cmd_global(s_HostServ,
anope_SendGlobops(s_HostServ,
"Unable to allocate memory to create the vHost LL, problems i sense..");
return NULL;
}
@@ -192,7 +192,7 @@ HostCore *insertHostCore(HostCore * head, HostCore * prev, char *nick,
newCore = (HostCore *)malloc(sizeof(HostCore));
if (newCore == NULL) {
anope_cmd_global(s_HostServ,
anope_SendGlobops(s_HostServ,
"Unable to allocate memory to insert into the vHost LL, problems i sense..");
return NULL;
} else {
@@ -203,7 +203,7 @@ HostCore *insertHostCore(HostCore * head, HostCore * prev, char *nick,
newCore->vIdent = (char *)malloc(sizeof(char) * strlen(vIdent) + 1);
if ((newCore->nick == NULL) || (newCore->vHost == NULL)
|| (newCore->creator == NULL)) {
anope_cmd_global(s_HostServ,
anope_SendGlobops(s_HostServ,
"Unable to allocate memory to create the vHost LL, problems i sense..");
return NULL;
}
@@ -212,7 +212,7 @@ HostCore *insertHostCore(HostCore * head, HostCore * prev, char *nick,
strcpy(newCore->creator, creator);
if (vIdent) {
if ((newCore->vIdent == NULL)) {
anope_cmd_global(s_HostServ,
anope_SendGlobops(s_HostServ,
"Unable to allocate memory to create the vHost LL, problems i sense..");
return NULL;
}
@@ -463,7 +463,7 @@ void load_hs_dbase_v3(dbFILE * f)
restore_db(f); \
log_perror("Write error on %s", HostDBName); \
if (time(NULL) - lastwarn > WarningTimeout) { \
anope_cmd_global(NULL, "Write error on %s: %s", HostDBName, \
anope_SendGlobops(NULL, "Write error on %s: %s", HostDBName, \
strerror(errno)); \
lastwarn = time(NULL); \
} \
+2 -2
View File
@@ -726,7 +726,7 @@ int init_secondary(int ac, char **av)
/* Announce a logfile error if there was one */
if (openlog_failed) {
anope_cmd_global(NULL, "Warning: couldn't open logfile: %s",
anope_SendGlobops(NULL, "Warning: couldn't open logfile: %s",
strerror(openlog_errno));
}
@@ -736,7 +736,7 @@ int init_secondary(int ac, char **av)
/* And hybrid needs Global joined in the logchan */
if (logchan && ircd->join2msg) {
/* XXX might desync */
anope_cmd_join(s_GlobalNoticer, LogChannel, time(NULL));
anope_SendJoin(s_GlobalNoticer, LogChannel, time(NULL));
}
anope_cmd_eob();
+13 -13
View File
@@ -202,27 +202,27 @@ void anope_SendQuit(const char *source, const char *fmt, ...)
ircdproto->SendQuit(source, buf);
}
void anope_cmd_pong(const char *servname, const char *who)
void anope_SendPong(const char *servname, const char *who)
{
ircdproto->cmd_pong(servname, who);
ircdproto->SendPong(servname, who);
}
void anope_cmd_join(const char *user, const char *channel, time_t chantime)
void anope_SendJoin(const char *user, const char *channel, time_t chantime)
{
ircdproto->cmd_join(user, channel, chantime);
ircdproto->SendJoin(user, channel, chantime);
}
void anope_cmd_unsqline(const char *user)
void anope_SendSQLineDel(const char *user)
{
ircdproto->cmd_unsqline(user);
ircdproto->SendSQLineDel(user);
}
void anope_cmd_invite(const char *source, const char *chan, const char *nick)
void anope_SendInvite(const char *source, const char *chan, const char *nick)
{
ircdproto->cmd_invite(source, chan, nick);
ircdproto->SendInvite(source, chan, nick);
}
void anope_cmd_part(const char *nick, const char *chan, const char *fmt, ...)
void anope_SendPart(const char *nick, const char *chan, const char *fmt, ...)
{
if (fmt) {
va_list args;
@@ -230,12 +230,12 @@ void anope_cmd_part(const char *nick, const char *chan, const char *fmt, ...)
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
ircdproto->cmd_part(nick, chan, buf);
ircdproto->SendPart(nick, chan, buf);
}
else ircdproto->cmd_part(nick, chan, NULL);
else ircdproto->SendPart(nick, chan, NULL);
}
void anope_cmd_global(const char *source, const char *fmt, ...)
void anope_SendGlobops(const char *source, const char *fmt, ...)
{
va_list args;
char buf[BUFSIZE] = "";
@@ -244,7 +244,7 @@ void anope_cmd_global(const char *source, const char *fmt, ...)
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
}
ircdproto->cmd_global(source, buf);
ircdproto->SendGlobops(source, buf);
}
void anope_cmd_sqline(const char *mask, const char *reason)
+3 -3
View File
@@ -245,7 +245,7 @@ void fatal(const char *fmt, ...)
if (nofork)
fprintf(stderr, "%s FATAL: %s\n", buf, buf2);
if (servsock >= 0)
anope_cmd_global(NULL, "FATAL ERROR! %s", buf2);
anope_SendGlobops(NULL, "FATAL ERROR! %s", buf2);
/* one of the many places this needs to be called from */
ModuleRunTimeDirCleanUp();
@@ -283,7 +283,7 @@ void fatal_perror(const char *fmt, ...)
fprintf(stderr, "%s FATAL: %s: %s\n", buf, buf2,
strerror(errno_save));
if (servsock >= 0)
anope_cmd_global(NULL, "FATAL ERROR! %s: %s", buf2,
anope_SendGlobops(NULL, "FATAL ERROR! %s: %s", buf2,
strerror(errno_save));
/* one of the many places this needs to be called from */
@@ -326,7 +326,7 @@ void fatal_sockerror(const char *fmt, ...)
fprintf(stderr, "%s FATAL: %s: %s\n", buf, buf2,
ano_sockstrerror(errno_save));
if (servsock >= 0)
anope_cmd_global(NULL, "FATAL ERROR! %s: %s", buf2,
anope_SendGlobops(NULL, "FATAL ERROR! %s: %s", buf2,
strerror(errno_save));
/* one of the many places this needs to be called from */
+11 -11
View File
@@ -183,41 +183,41 @@ void save_databases(void)
* exists we're safe. -GD
*/
if (serv_uplink)
anope_cmd_pong(ServerName, ServerName);
anope_SendPong(ServerName, ServerName);
waiting = -12;
save_cs_rdb_dbase();
if (serv_uplink)
anope_cmd_pong(ServerName, ServerName);
anope_SendPong(ServerName, ServerName);
if (PreNickDBName) {
save_ns_req_rdb_dbase();
if (serv_uplink)
anope_cmd_pong(ServerName, ServerName);
anope_SendPong(ServerName, ServerName);
waiting = -13;
}
if (s_BotServ) {
waiting = -14;
save_bs_rdb_dbase();
if (serv_uplink)
anope_cmd_pong(ServerName, ServerName);
anope_SendPong(ServerName, ServerName);
}
if (s_HostServ) {
waiting = -15;
save_hs_rdb_dbase();
if (serv_uplink)
anope_cmd_pong(ServerName, ServerName);
anope_SendPong(ServerName, ServerName);
}
waiting = -16;
save_os_rdb_dbase();
if (serv_uplink)
anope_cmd_pong(ServerName, ServerName);
anope_SendPong(ServerName, ServerName);
waiting = -17;
save_rdb_news();
if (serv_uplink)
anope_cmd_pong(ServerName, ServerName);
anope_SendPong(ServerName, ServerName);
waiting = -18;
save_rdb_exceptions();
if (serv_uplink)
anope_cmd_pong(ServerName, ServerName);
anope_SendPong(ServerName, ServerName);
}
#endif
waiting = -20;
@@ -385,7 +385,7 @@ void sighandler(int signum)
inbuf[447] = '>';
inbuf[448] = 0;
}
anope_cmd_global(NULL, "PANIC! buffer = %s\r\n", inbuf);
anope_SendGlobops(NULL, "PANIC! buffer = %s\r\n", inbuf);
modules_unload_all(false, true);
} else if (waiting < 0) {
/* This is static on the off-chance we run low on stack */
@@ -461,7 +461,7 @@ void sighandler(int signum)
default:
snprintf(buf, sizeof(buf), "waiting=%d", waiting);
}
anope_cmd_global(NULL, "PANIC! %s (%s)", buf, strsignal(signum));
anope_SendGlobops(NULL, "PANIC! %s (%s)", buf, strsignal(signum));
alog("PANIC! %s (%s)", buf, strsignal(signum));
modules_unload_all(false, true);
}
@@ -585,7 +585,7 @@ int main(int ac, char **av, char **envp)
if (!readonly && (save_data || t - last_update >= UpdateTimeout)) {
if (delayed_quit)
anope_cmd_global(NULL,
anope_SendGlobops(NULL,
"Updating databases on shutdown, please wait.");
save_databases();
+1 -1
View File
@@ -166,7 +166,7 @@ int m_privmsg(const char *source, const char *receiver, const char *msg)
if (!is_oper(u) && OSOpersOnly) {
notice_lang(s_OperServ, u, ACCESS_DENIED);
if (WallBadOS)
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"Denied access to %s from %s!%s@%s (non-oper)",
s_OperServ, u->nick, u->username,
u->host);
+2 -2
View File
@@ -670,7 +670,7 @@ int loadModule(Module * m, User * u)
}
if (u) {
anope_cmd_global(s_OperServ, "%s loaded module %s", u->nick,
anope_SendGlobops(s_OperServ, "%s loaded module %s", u->nick,
m->name);
notice_lang(s_OperServ, u, OPER_MODULE_LOADED, m->name);
}
@@ -726,7 +726,7 @@ int unloadModule(Module * m, User * u)
return MOD_ERR_NOUNLOAD;
} else {
if (u) {
anope_cmd_global(s_OperServ, "%s unloaded module %s", u->nick,
anope_SendGlobops(s_OperServ, "%s unloaded module %s", u->nick,
m->name);
notice_lang(s_OperServ, u, OPER_MODULE_UNLOADED, m->name);
}
+2 -2
View File
@@ -147,14 +147,14 @@ int my_cs_appendtopic(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);
}
}
anope_cmd_topic(whosends(ci), c->name, u->nick, 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);
}
}
}
+1 -1
View File
@@ -419,7 +419,7 @@ int mSaveData(int argc, char **argv)
if (!stricmp(argv[0], EVENT_START)) {
if ((out = fopen(OSInfoDBName, "w")) == NULL) {
alog("os_info: ERROR: can not open the database file!");
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"os_info: ERROR: can not open the database file!");
ret = 1;
} else {
+1 -1
View File
@@ -203,7 +203,7 @@ void load_news()
restore_db(f); \
log_perror("Write error on %s", NewsDBName); \
if (time(NULL) - lastwarn > WarningTimeout) { \
anope_cmd_global(NULL, "Write error on %s: %s", NewsDBName, \
anope_SendGlobops(NULL, "Write error on %s: %s", NewsDBName, \
strerror(errno)); \
lastwarn = time(NULL); \
} \
+1 -1
View File
@@ -621,7 +621,7 @@ void load_ns_dbase(void)
restore_db(f); \
log_perror("Write error on %s", NickDBName); \
if (time(NULL) - lastwarn > WarningTimeout) { \
anope_cmd_global(NULL, "Write error on %s: %s", NickDBName, \
anope_SendGlobops(NULL, "Write error on %s: %s", NickDBName, \
strerror(errno)); \
lastwarn = time(NULL); \
} \
+7 -7
View File
@@ -423,7 +423,7 @@ void load_os_dbase(void)
restore_db(f); \
log_perror("Write error on %s", OperDBName); \
if (time(NULL) - lastwarn > WarningTimeout) { \
anope_cmd_global(NULL, "Write error on %s: %s", OperDBName, \
anope_SendGlobops(NULL, "Write error on %s: %s", OperDBName, \
strerror(errno)); \
lastwarn = time(NULL); \
} \
@@ -903,7 +903,7 @@ void expire_akills(void)
continue;
if (WallAkillExpire)
anope_cmd_global(s_OperServ, "AKILL on %s@%s has expired",
anope_SendGlobops(s_OperServ, "AKILL on %s@%s has expired",
ak->user, ak->host);
slist_delete(&akills, i);
}
@@ -1091,7 +1091,7 @@ void expire_sglines(void)
continue;
if (WallSGLineExpire)
anope_cmd_global(s_OperServ, "SGLINE on \2%s\2 has expired",
anope_SendGlobops(s_OperServ, "SGLINE on \2%s\2 has expired",
sx->mask);
slist_delete(&sglines, i);
}
@@ -1311,7 +1311,7 @@ void expire_sqlines(void)
continue;
if (WallSQLineExpire)
anope_cmd_global(s_OperServ, "SQLINE on \2%s\2 has expired",
anope_SendGlobops(s_OperServ, "SQLINE on \2%s\2 has expired",
sx->mask);
slist_delete(&sqlines, i);
@@ -1323,7 +1323,7 @@ static void free_sqline_entry(SList * slist, void *item)
SXLine *sx = (SXLine *)item;
/* Remove the SQLINE from all the servers */
anope_cmd_unsqline(sx->mask);
anope_SendSQLineDel(sx->mask);
/* Free the structure */
free(sx->mask);
@@ -1480,7 +1480,7 @@ void expire_szlines(void)
continue;
if (WallSZLineExpire)
anope_cmd_global(s_OperServ, "SZLINE on \2%s\2 has expired",
anope_SendGlobops(s_OperServ, "SZLINE on \2%s\2 has expired",
sx->mask);
slist_delete(&szlines, i);
}
@@ -1598,7 +1598,7 @@ void resetDefCon(int level)
DefConLevel = level;
send_event(EVENT_DEFCON_LEVEL, 1, strLevel);
alog("Defcon level timeout, returning to lvl %d", level);
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
getstring2(NULL, OPER_DEFCON_WALL),
s_OperServ, level);
if (GlobalOnDefcon) {
+4 -4
View File
@@ -185,7 +185,7 @@ void BahamutIRCdProto::set_umode(User *user, int ac, const char **av)
case 'o':
if (add) {
++opcnt;
if (WallOper) anope_cmd_global(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
if (WallOper) anope_SendGlobops(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
display_news(user, NEWS_OPER);
}
else --opcnt;
@@ -723,13 +723,13 @@ void BahamutIRCdProto::cmd_topic(const char *whosets, const char *chan, const ch
}
/* UNSQLINE */
void BahamutIRCdProto::cmd_unsqline(const char *user)
void BahamutIRCdProto::SendSQLineDel(const char *user)
{
send_cmd(NULL, "UNSQLINE %s", user);
}
/* JOIN - SJOIN */
void BahamutIRCdProto::cmd_join(const char *user, const char *channel, time_t chantime)
void BahamutIRCdProto::SendJoin(const char *user, const char *channel, time_t chantime)
{
send_cmd(user, "SJOIN %ld %s", static_cast<long>(chantime), channel);
}
@@ -982,7 +982,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
ircd_proto.cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
ircd_proto.SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
+2 -2
View File
@@ -72,8 +72,8 @@ class BahamutIRCdProto : public IRCDProto {
void SendKick(const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void cmd_join(const char *, const char *, time_t);
void cmd_unsqline(const char *);
void SendJoin(const char *, const char *, time_t);
void SendSQLineDel(const char *);
void cmd_sqline(const char *, const char *);
void cmd_connect();
void cmd_svshold(const char *);
+8 -8
View File
@@ -167,7 +167,7 @@ void CharybdisProto::set_umode(User *user, int ac, const char **av)
case 'o':
if (add) {
++opcnt;
if (WallOper) anope_cmd_global(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
if (WallOper) anope_SendGlobops(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
display_news(user, NEWS_OPER);
}
else --opcnt;
@@ -434,7 +434,7 @@ CUMode myCumodes[128] = {
{0}, {0}, {0}, {0}, {0}
};
void CharybdisProto::cmd_global(const char *source, const char *buf)
void CharybdisProto::SendGlobops(const char *source, const char *buf)
{
if (!buf) return;
if (source) {
@@ -745,13 +745,13 @@ void CharybdisProto::cmd_vhost_on(const char *nick, const char *vIdent, const ch
send_cmd(UseTS6 ? TS6SID : ServerName, "ENCAP * CHGHOST %s :%s", nick, vhost);
}
void CharybdisProto::cmd_unsqline(const char *user)
void CharybdisProto::SendSQLineDel(const char *user)
{
Uid *ud = find_uid(s_OperServ);
send_cmd(UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ, "UNRESV * %s", user);
}
void CharybdisProto::cmd_join(const char *user, const char *channel, time_t chantime)
void CharybdisProto::SendJoin(const char *user, const char *channel, time_t chantime)
{
Uid *ud = find_uid(user);
send_cmd(NULL, "SJOIN %ld %s + :%s", static_cast<long>(chantime), channel, UseTS6 ? (ud ? ud->uid : user) : user);
@@ -870,7 +870,7 @@ void CharybdisProto::SendClientIntroduction(const char *nick, const char *user,
cmd_sqline(nick, "Reserved for services");
}
void CharybdisProto::cmd_part(const char *nick, const char *chan, const char *buf)
void CharybdisProto::SendPart(const char *nick, const char *chan, const char *buf)
{
Uid *ud = find_uid(nick);
if (buf) send_cmd(UseTS6 ? ud->uid : nick, "PART %s :%s", chan, buf);
@@ -881,7 +881,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
ircd_proto.cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
ircd_proto.SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -1101,7 +1101,7 @@ void CharybdisProto::SendQuit(const char *source, const char *buf)
}
/* PONG */
void CharybdisProto::cmd_pong(const char *servname, const char *who)
void CharybdisProto::SendPong(const char *servname, const char *who)
{
/* deliberately no SID in the first parameter -- jilles */
if (UseTS6) send_cmd(TS6SID, "PONG %s :%s", servname, who);
@@ -1109,7 +1109,7 @@ void CharybdisProto::cmd_pong(const char *servname, const char *who)
}
/* INVITE */
void CharybdisProto::cmd_invite(const char *source, const char *chan, const char *nick)
void CharybdisProto::SendInvite(const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick) return;
Uid *ud = find_uid(source);
+6 -6
View File
@@ -59,12 +59,12 @@ class CharybdisProto : public IRCDTS6Proto {
void SendNoticeChanops(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void SendQuit(const char *, const char *);
void cmd_pong(const char *, const char *);
void cmd_join(const char *, const char *, time_t);
void cmd_unsqline(const char *);
void cmd_invite(const char *, const char *, const char *);
void cmd_part(const char *, const char *, const char *);
void cmd_global(const char *, const char *);
void SendPong(const char *, const char *);
void SendJoin(const char *, const char *, time_t);
void SendSQLineDel(const char *);
void SendInvite(const char *, const char *, const char *);
void SendPart(const char *, const char *, const char *);
void SendGlobops(const char *, const char *);
void cmd_sqline(const char *, const char *);
void cmd_svsnick(const char *, const char *, time_t);
void cmd_vhost_on(const char *, const char *, const char *);
+9 -9
View File
@@ -421,7 +421,7 @@ void InspIRCdProto::set_umode(User *user, int ac, const char **av)
case 'o':
if (add) {
++opcnt;
if (WallOper) anope_cmd_global(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
if (WallOper) anope_SendGlobops(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
display_news(user, NEWS_OPER);
}
else --opcnt;
@@ -529,7 +529,7 @@ void inspircd_cmd_chghost(const char *nick, const char *vhost)
}
send_cmd(s_OperServ, "CHGHOST %s %s", nick, vhost);
} else {
anope_cmd_global(s_OperServ, "CHGHOST not loaded!");
anope_SendGlobops(s_OperServ, "CHGHOST not loaded!");
}
}
@@ -759,13 +759,13 @@ void InspIRCdProto::cmd_server(const char *servname, int hop, const char *descri
}
/* JOIN */
void InspIRCdProto::cmd_join(const char *user, const char *channel, time_t chantime)
void InspIRCdProto::SendJoin(const char *user, const char *channel, time_t chantime)
{
send_cmd(user, "JOIN %s", channel);
}
/* UNSQLINE */
void InspIRCdProto::cmd_unsqline(const char *user)
void InspIRCdProto::SendSQLineDel(const char *user)
{
if (!user) return;
send_cmd(s_OperServ, "QLINE %s", user);
@@ -780,7 +780,7 @@ void inspircd_cmd_chgident(const char *nick, const char *vIdent)
}
send_cmd(s_OperServ, "CHGIDENT %s %s", nick, vIdent);
} else {
anope_cmd_global(s_OperServ, "CHGIDENT not loaded!");
anope_SendGlobops(s_OperServ, "CHGIDENT not loaded!");
}
}
@@ -825,7 +825,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
if (ac < 1)
return MOD_CONT;
/* ((ac > 1) ? av[1] : ServerName) */
ircd_proto.cmd_pong(ServerName, av[0]);
ircd_proto.SendPong(ServerName, av[0]);
return MOD_CONT;
}
@@ -1212,13 +1212,13 @@ int anope_event_capab(const char *source, int ac, const char **av)
return MOD_STOP;
}
if (!has_svsholdmod) {
anope_cmd_global(s_OperServ, "SVSHOLD missing, Usage disabled until module is loaded.");
anope_SendGlobops(s_OperServ, "SVSHOLD missing, Usage disabled until module is loaded.");
}
if (!has_chghostmod) {
anope_cmd_global(s_OperServ, "CHGHOST missing, Usage disabled until module is loaded.");
anope_SendGlobops(s_OperServ, "CHGHOST missing, Usage disabled until module is loaded.");
}
if (!has_chgidentmod) {
anope_cmd_global(s_OperServ, "CHGIDENT missing, Usage disabled until module is loaded.");
anope_SendGlobops(s_OperServ, "CHGIDENT missing, Usage disabled until module is loaded.");
}
if (has_messagefloodmod) {
cbmi = myCbmodeinfos;
+2 -2
View File
@@ -77,8 +77,8 @@ class InspIRCdProto : public IRCDProto {
void SendKick(const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void cmd_join(const char *, const char *, time_t);
void cmd_unsqline(const char *);
void SendJoin(const char *, const char *, time_t);
void SendSQLineDel(const char *);
void cmd_sqline(const char *, const char *);
void cmd_squit(const char *, const char *);
void cmd_vhost_on(const char *, const char *, const char *);
+16 -16
View File
@@ -189,7 +189,7 @@ void hybrid_set_umode(User * user, int ac, const char **av)
opcnt++;
if (WallOper)
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"\2%s\2 is now an IRC operator.",
user->nick);
display_news(user, NEWS_OPER);
@@ -504,7 +504,7 @@ void hybrid_SendGlobalPrivmsg(const char *source, const char *dest, const char *
}
void hybrid_cmd_global(const char *source, const char *buf)
void hybrid_SendGlobops(const char *source, const char *buf)
{
if (!buf) {
return;
@@ -514,7 +514,7 @@ void hybrid_cmd_global(const char *source, const char *buf)
}
/* GLOBOPS - to handle old WALLOPS */
void hybrid_cmd_global_legacy(const char *source, const char *fmt)
void hybrid_SendGlobops_legacy(const char *source, const char *fmt)
{
send_cmd(source ? source : ServerName, "OPERWALL :%s", fmt);
}
@@ -714,7 +714,7 @@ void hybrid_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhost
/* does not support vhosting */
}
void hybrid_cmd_unsqline(const char *user)
void hybrid_SendSQLineDel(const char *user)
{
if (!user) {
return;
@@ -723,7 +723,7 @@ void hybrid_cmd_unsqline(const char *user)
send_cmd(ServerName, "UNRESV * %s", user);
}
void hybrid_cmd_join(const char *user, const char *channel, time_t chantime)
void hybrid_SendJoin(const char *user, const char *channel, time_t chantime)
{
send_cmd(NULL, "SJOIN %ld %s + :%s", (long int) chantime, channel,
user);
@@ -848,7 +848,7 @@ void hybrid_SendClientIntroduction(const char *nick, const char *user, const cha
}
void hybrid_cmd_part(const char *nick, const char *chan, const char *buf)
void hybrid_SendPart(const char *nick, const char *chan, const char *buf)
{
if (buf) {
send_cmd(nick, "PART %s :%s", chan, buf);
@@ -861,7 +861,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
hybrid_cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
hybrid_SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -1176,13 +1176,13 @@ void hybrid_SendQuit(const char *source, const char *buf)
}
/* PONG */
void hybrid_cmd_pong(const char *servname, const char *who)
void hybrid_SendPong(const char *servname, const char *who)
{
send_cmd(servname, "PONG %s", who);
}
/* INVITE */
void hybrid_cmd_invite(const char *source, const char *chan, const char *nick)
void hybrid_SendInvite(const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick) {
return;
@@ -1477,11 +1477,11 @@ void moduleAddAnopeCmds()
pmodule_SendBotOp(hybrid_cmd_bot_chan_mode);
pmodule_cmd_351(hybrid_cmd_351);
pmodule_SendQuit(hybrid_cmd_quit);
pmodule_cmd_pong(hybrid_cmd_pong);
pmodule_cmd_join(hybrid_cmd_join);
pmodule_cmd_unsqline(hybrid_cmd_unsqline);
pmodule_cmd_invite(hybrid_cmd_invite);
pmodule_cmd_part(hybrid_cmd_part);
pmodule_SendPong(hybrid_cmd_pong);
pmodule_SendJoin(hybrid_cmd_join);
pmodule_SendSQLineDel(hybrid_cmd_unsqline);
pmodule_SendInvite(hybrid_cmd_invite);
pmodule_SendPart(hybrid_cmd_part);
pmodule_cmd_391(hybrid_cmd_391);
pmodule_cmd_250(hybrid_cmd_250);
pmodule_cmd_307(hybrid_cmd_307);
@@ -1494,8 +1494,8 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(hybrid_cmd_242);
pmodule_cmd_243(hybrid_cmd_243);
pmodule_cmd_211(hybrid_cmd_211);
pmodule_cmd_global(hybrid_cmd_global);
pmodule_cmd_global_legacy(hybrid_cmd_global_legacy);
pmodule_SendGlobops(hybrid_cmd_global);
pmodule_SendGlobops_legacy(hybrid_cmd_global_legacy);
pmodule_cmd_sqline(hybrid_cmd_sqline);
pmodule_cmd_squit(hybrid_cmd_squit);
pmodule_cmd_svso(hybrid_cmd_svso);
+7 -7
View File
@@ -68,11 +68,11 @@ void hybrid_SendGlobalPrivmsg(const char *source, const char *dest, const char *
void hybrid_SendBotOp(const char *nick, const char *chan);
void hybrid_cmd_351(const char *source);
void hybrid_SendQuit(const char *source, const char *buf);
void hybrid_cmd_pong(const char *servname, const char *who);
void hybrid_cmd_join(const char *user, const char *channel, time_t chantime);
void hybrid_cmd_unsqline(const char *user);
void hybrid_cmd_invite(const char *source, const char *chan, const char *nick);
void hybrid_cmd_part(const char *nick, const char *chan, const char *buf);
void hybrid_SendPong(const char *servname, const char *who);
void hybrid_SendJoin(const char *user, const char *channel, time_t chantime);
void hybrid_SendSQLineDel(const char *user);
void hybrid_SendInvite(const char *source, const char *chan, const char *nick);
void hybrid_SendPart(const char *nick, const char *chan, const char *buf);
void hybrid_cmd_391(const char *source, const char *timestr);
void hybrid_cmd_250(const char *buf);
void hybrid_cmd_307(const char *buf);
@@ -85,8 +85,8 @@ void hybrid_cmd_318(const char *source, const char *who);
void hybrid_cmd_242(const char *buf);
void hybrid_cmd_243(const char *buf);
void hybrid_cmd_211(const char *buf);
void hybrid_cmd_global(const char *source, const char *buf);
void hybrid_cmd_global_legacy(const char *source, const char *fmt);
void hybrid_SendGlobops(const char *source, const char *buf);
void hybrid_SendGlobops_legacy(const char *source, const char *fmt);
void hybrid_cmd_sqline(const char *mask, const char *reason);
void hybrid_cmd_squit(const char *servname, const char *message);
void hybrid_cmd_svso(const char *source, const char *nick, const char *flag);
+16 -16
View File
@@ -195,7 +195,7 @@ plexus_set_umode (User * user, int ac, const char **av)
opcnt++;
if (WallOper)
anope_cmd_global (s_OperServ,
anope_SendGlobops (s_OperServ,
"\2%s\2 is now an IRC operator.",
user->nick);
display_news (user, NEWS_OPER);
@@ -530,7 +530,7 @@ plexus_SendGlobalPrivmsg (const char *source, const char *dest, const char *msg)
void
plexus_cmd_global (const char *source, const char *buf)
plexus_SendGlobops (const char *source, const char *buf)
{
if (!buf)
{
@@ -542,7 +542,7 @@ plexus_cmd_global (const char *source, const char *buf)
/* GLOBOPS - to handle old WALLOPS */
void
plexus_cmd_global_legacy (const char *source, const char *fmt)
plexus_SendGlobops_legacy (const char *source, const char *fmt)
{
send_cmd (source ? source : ServerName, "OPERWALL :%s", fmt);
}
@@ -833,13 +833,13 @@ plexus_cmd_vhost_on (const char *nick, const char *vIdent, const char *vhost)
}
void
plexus_cmd_unsqline (const char *user)
plexus_SendSQLineDel (const char *user)
{
send_cmd (s_OperServ, "UNRESV * %s", user);
}
void
plexus_cmd_join (const char *user, const char *channel, time_t chantime)
plexus_SendJoin (const char *user, const char *channel, time_t chantime)
{
send_cmd (ServerName, "SJOIN %ld %s + :%s", (long int) chantime, channel,
user);
@@ -981,7 +981,7 @@ plexus_SendClientIntroduction (const char *nick, const char *user, const char *h
}
void
plexus_cmd_part (const char *nick, const char *chan, const char *buf)
plexus_SendPart (const char *nick, const char *chan, const char *buf)
{
if (buf)
{
@@ -998,7 +998,7 @@ anope_event_ping (const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
plexus_cmd_pong (ac > 1 ? av[1] : ServerName, av[0]);
plexus_SendPong (ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -1377,14 +1377,14 @@ plexus_SendQuit (const char *source, const char *buf)
/* PONG */
void
plexus_cmd_pong (const char *servname, const char *who)
plexus_SendPong (const char *servname, const char *who)
{
send_cmd (servname, "PONG %s", who);
}
/* INVITE */
void
plexus_cmd_invite (const char *source, const char *chan, const char *nick)
plexus_SendInvite (const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick)
{
@@ -1761,11 +1761,11 @@ moduleAddAnopeCmds ()
pmodule_SendBotOp (plexus_cmd_bot_chan_mode);
pmodule_cmd_351 (plexus_cmd_351);
pmodule_SendQuit (plexus_cmd_quit);
pmodule_cmd_pong (plexus_cmd_pong);
pmodule_cmd_join (plexus_cmd_join);
pmodule_cmd_unsqline (plexus_cmd_unsqline);
pmodule_cmd_invite (plexus_cmd_invite);
pmodule_cmd_part (plexus_cmd_part);
pmodule_SendPong (plexus_cmd_pong);
pmodule_SendJoin (plexus_cmd_join);
pmodule_SendSQLineDel (plexus_cmd_unsqline);
pmodule_SendInvite (plexus_cmd_invite);
pmodule_SendPart (plexus_cmd_part);
pmodule_cmd_391 (plexus_cmd_391);
pmodule_cmd_250 (plexus_cmd_250);
pmodule_cmd_307 (plexus_cmd_307);
@@ -1778,8 +1778,8 @@ moduleAddAnopeCmds ()
pmodule_cmd_242 (plexus_cmd_242);
pmodule_cmd_243 (plexus_cmd_243);
pmodule_cmd_211 (plexus_cmd_211);
pmodule_cmd_global (plexus_cmd_global);
pmodule_cmd_global_legacy (plexus_cmd_global_legacy);
pmodule_SendGlobops (plexus_cmd_global);
pmodule_SendGlobops_legacy (plexus_cmd_global_legacy);
pmodule_cmd_sqline (plexus_cmd_sqline);
pmodule_cmd_squit (plexus_cmd_squit);
pmodule_cmd_svso (plexus_cmd_svso);
+7 -7
View File
@@ -64,11 +64,11 @@ void plexus_SendGlobalPrivmsg(const char *source, const char *dest, const char *
void plexus_SendBotOp(const char *nick, const char *chan);
void plexus_cmd_351(const char *source);
void plexus_SendQuit(const char *source, const char *buf);
void plexus_cmd_pong(const char *servname, const char *who);
void plexus_cmd_join(const char *user, const char *channel, time_t chantime);
void plexus_cmd_unsqline(const char *user);
void plexus_cmd_invite(const char *source, const char *chan, const char *nick);
void plexus_cmd_part(const char *nick, const char *chan, const char *buf);
void plexus_SendPong(const char *servname, const char *who);
void plexus_SendJoin(const char *user, const char *channel, time_t chantime);
void plexus_SendSQLineDel(const char *user);
void plexus_SendInvite(const char *source, const char *chan, const char *nick);
void plexus_SendPart(const char *nick, const char *chan, const char *buf);
void plexus_cmd_391(const char *source, const char *timestr);
void plexus_cmd_250(const char *buf);
void plexus_cmd_307(const char *buf);
@@ -81,8 +81,8 @@ void plexus_cmd_318(const char *source, const char *who);
void plexus_cmd_242(const char *buf);
void plexus_cmd_243(const char *buf);
void plexus_cmd_211(const char *buf);
void plexus_cmd_global(const char *source, const char *buf);
void plexus_cmd_global_legacy(const char *source, const char *fmt);
void plexus_SendGlobops(const char *source, const char *buf);
void plexus_SendGlobops_legacy(const char *source, const char *fmt);
void plexus_cmd_sqline(const char *mask, const char *reason);
void plexus_cmd_squit(const char *servname, const char *message);
void plexus_cmd_svso(const char *source, const char *nick, const char *flag);
+16 -16
View File
@@ -717,12 +717,12 @@ void anope_topic(char *whosets, char *chan, char *whosetit, char *topic,
parv[0] = sender
parv[1] = sqlined nick/mask
*/
void ptlink_cmd_unsqline(const char *user)
void ptlink_SendSQLineDel(const char *user)
{
send_cmd(NULL, "UNSQLINE %s", user);
}
void ptlink_cmd_join(const char *user, const char *channel, time_t chantime)
void ptlink_SendJoin(const char *user, const char *channel, time_t chantime)
{
send_cmd(ServerName, "SJOIN %ld %s + :%s", (long int) chantime,
channel, user);
@@ -798,7 +798,7 @@ void ptlink_cmd_squit(const char *servname, const char *message)
}
/* PONG */
void ptlink_cmd_pong(const char *servname, const char *who)
void ptlink_SendPong(const char *servname, const char *who)
{
send_cmd(servname, "PONG %s", who);
}
@@ -1046,7 +1046,7 @@ void ptlink_SendGlobalPrivmsg(const char *source, const char *dest, const char *
}
/* GLOBOPS */
void ptlink_cmd_global(const char *source, const char *buf)
void ptlink_SendGlobops(const char *source, const char *buf)
{
if (!buf) {
return;
@@ -1231,7 +1231,7 @@ void ptlink_SendQuit(const char *source, const char *buf)
}
}
void ptlink_cmd_part(const char *nick, const char *chan, const char *buf)
void ptlink_SendPart(const char *nick, const char *chan, const char *buf)
{
if (buf) {
send_cmd(nick, "PART %s :%s", chan, buf);
@@ -1275,7 +1275,7 @@ void ptlink_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhost
}
/* INVITE */
void ptlink_cmd_invite(const char *source, const char *chan, const char *nick)
void ptlink_SendInvite(const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick) {
return;
@@ -1339,7 +1339,7 @@ void ptlink_set_umode(User * user, int ac, const char **av)
opcnt++;
if (WallOper)
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"\2%s\2 is now an IRC operator.",
user->nick);
display_news(user, NEWS_OPER);
@@ -1366,7 +1366,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
ptlink_cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
ptlink_SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -1635,7 +1635,7 @@ void ptlink_cmd_jupe(const char *jserver, const char *who, const char *reason)
}
/* GLOBOPS - to handle old WALLOPS */
void ptlink_cmd_global_legacy(const char *source, const char *fmt)
void ptlink_SendGlobops_legacy(const char *source, const char *fmt)
{
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
}
@@ -1706,11 +1706,11 @@ void moduleAddAnopeCmds()
pmodule_SendBotOp(ptlink_cmd_bot_chan_mode);
pmodule_cmd_351(ptlink_cmd_351);
pmodule_SendQuit(ptlink_cmd_quit);
pmodule_cmd_pong(ptlink_cmd_pong);
pmodule_cmd_join(ptlink_cmd_join);
pmodule_cmd_unsqline(ptlink_cmd_unsqline);
pmodule_cmd_invite(ptlink_cmd_invite);
pmodule_cmd_part(ptlink_cmd_part);
pmodule_SendPong(ptlink_cmd_pong);
pmodule_SendJoin(ptlink_cmd_join);
pmodule_SendSQLineDel(ptlink_cmd_unsqline);
pmodule_SendInvite(ptlink_cmd_invite);
pmodule_SendPart(ptlink_cmd_part);
pmodule_cmd_391(ptlink_cmd_391);
pmodule_cmd_250(ptlink_cmd_250);
pmodule_cmd_307(ptlink_cmd_307);
@@ -1723,8 +1723,8 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(ptlink_cmd_242);
pmodule_cmd_243(ptlink_cmd_243);
pmodule_cmd_211(ptlink_cmd_211);
pmodule_cmd_global(ptlink_cmd_global);
pmodule_cmd_global_legacy(ptlink_cmd_global_legacy);
pmodule_SendGlobops(ptlink_cmd_global);
pmodule_SendGlobops_legacy(ptlink_cmd_global_legacy);
pmodule_cmd_sqline(ptlink_cmd_sqline);
pmodule_cmd_squit(ptlink_cmd_squit);
pmodule_cmd_svso(ptlink_cmd_svso);
+7 -7
View File
@@ -103,11 +103,11 @@ void ptlink_SendGlobalPrivmsg(const char *source, const char *dest, const char *
void ptlink_SendBotOp(const char *nick, const char *chan);
void ptlink_cmd_351(const char *source);
void ptlink_SendQuit(const char *source, const char *buf);
void ptlink_cmd_pong(const char *servname, const char *who);
void ptlink_cmd_join(const char *user, const char *channel, time_t chantime);
void ptlink_cmd_unsqline(const char *user);
void ptlink_cmd_invite(const char *source, const char *chan, const char *nick);
void ptlink_cmd_part(const char *nick, const char *chan, const char *buf);
void ptlink_SendPong(const char *servname, const char *who);
void ptlink_SendJoin(const char *user, const char *channel, time_t chantime);
void ptlink_SendSQLineDel(const char *user);
void ptlink_SendInvite(const char *source, const char *chan, const char *nick);
void ptlink_SendPart(const char *nick, const char *chan, const char *buf);
void ptlink_cmd_391(const char *source, const char *timestr);
void ptlink_cmd_250(const char *buf);
void ptlink_cmd_307(const char *buf);
@@ -120,8 +120,8 @@ void ptlink_cmd_318(const char *source, const char *who);
void ptlink_cmd_242(const char *buf);
void ptlink_cmd_243(const char *buf);
void ptlink_cmd_211(const char *buf);
void ptlink_cmd_global(const char *source, const char *buf);
void ptlink_cmd_global_legacy(const char *source, const char *fmt);
void ptlink_SendGlobops(const char *source, const char *buf);
void ptlink_SendGlobops_legacy(const char *source, const char *fmt);
void ptlink_cmd_sqline(const char *mask, const char *reason);
void ptlink_cmd_squit(const char *servname, const char *message);
void ptlink_cmd_svso(const char *source, const char *nick, const char *flag);
+16 -16
View File
@@ -643,7 +643,7 @@ void RageIRCdProto::SendAkillDel(const char *user, const char *host)
/* PART */
void rageircd_cmd_part(const char *nick, const char *chan, const char *buf)
void rageircd_SendPart(const char *nick, const char *chan, const char *buf)
{
if (!nick || !chan) {
return;
@@ -683,12 +683,12 @@ void rageircd_cmd_vhost_on(const char *nick, const char *vIdent, const char *vho
rageircd_cmd_chghost(nick, vhost);
}
void rageircd_cmd_unsqline(const char *user)
void rageircd_SendSQLineDel(const char *user)
{
send_cmd(NULL, "UNSQLINE %s", user);
}
void rageircd_cmd_join(const char *user, const char *channel, time_t chantime)
void rageircd_SendJoin(const char *user, const char *channel, time_t chantime)
{
send_cmd(user, "SJOIN %ld %s", (long int) chantime, channel);
}
@@ -726,7 +726,7 @@ void rageircd_cmd_squit(const char *servname, const char *message)
}
/* PONG */
void rageircd_cmd_pong(const char *servname, const char *who)
void rageircd_SendPong(const char *servname, const char *who)
{
send_cmd(servname, "PONG %s", who);
}
@@ -826,7 +826,7 @@ void rageircd_set_umode(User * user, int ac, const char **av)
opcnt++;
if (WallOper)
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"\2%s\2 is now an IRC operator.",
user->nick);
display_news(user, NEWS_OPER);
@@ -852,7 +852,7 @@ void rageircd_set_umode(User * user, int ac, const char **av)
}
/* GLOBOPS */
void rageircd_cmd_global(const char *source, const char *buf)
void rageircd_SendGlobops(const char *source, const char *buf)
{
if (!buf) {
return;
@@ -926,7 +926,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
rageircd_cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
rageircd_SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -987,7 +987,7 @@ void rageircd_cmd_376(const char *source)
}
/* INVITE */
void rageircd_cmd_invite(const char *source, const char *chan, const char *nick)
void rageircd_SendInvite(const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick) {
return;
@@ -1515,7 +1515,7 @@ void rageircd_cmd_jupe(const char *jserver, const char *who, const char *reason)
}
/* GLOBOPS - to handle old WALLOPS */
void rageircd_cmd_global_legacy(const char *source, const char *fmt)
void rageircd_SendGlobops_legacy(const char *source, const char *fmt)
{
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
}
@@ -1586,11 +1586,11 @@ void moduleAddAnopeCmds()
pmodule_SendBotOp(rageircd_cmd_bot_chan_mode);
pmodule_cmd_351(rageircd_cmd_351);
pmodule_SendQuit(rageircd_cmd_quit);
pmodule_cmd_pong(rageircd_cmd_pong);
pmodule_cmd_join(rageircd_cmd_join);
pmodule_cmd_unsqline(rageircd_cmd_unsqline);
pmodule_cmd_invite(rageircd_cmd_invite);
pmodule_cmd_part(rageircd_cmd_part);
pmodule_SendPong(rageircd_cmd_pong);
pmodule_SendJoin(rageircd_cmd_join);
pmodule_SendSQLineDel(rageircd_cmd_unsqline);
pmodule_SendInvite(rageircd_cmd_invite);
pmodule_SendPart(rageircd_cmd_part);
pmodule_cmd_391(rageircd_cmd_391);
pmodule_cmd_250(rageircd_cmd_250);
pmodule_cmd_307(rageircd_cmd_307);
@@ -1603,8 +1603,8 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(rageircd_cmd_242);
pmodule_cmd_243(rageircd_cmd_243);
pmodule_cmd_211(rageircd_cmd_211);
pmodule_cmd_global(rageircd_cmd_global);
pmodule_cmd_global_legacy(rageircd_cmd_global_legacy);
pmodule_SendGlobops(rageircd_cmd_global);
pmodule_SendGlobops_legacy(rageircd_cmd_global_legacy);
pmodule_cmd_sqline(rageircd_cmd_sqline);
pmodule_cmd_squit(rageircd_cmd_squit);
pmodule_cmd_svso(rageircd_cmd_svso);
+7 -7
View File
@@ -66,11 +66,11 @@ void rageircd_SendGlobalPrivmsg(const char *source, const char *dest, const char
void rageircd_SendBotOp(const char *nick, const char *chan);
void rageircd_cmd_351(const char *source);
void rageircd_SendQuit(const char *source, const char *buf);
void rageircd_cmd_pong(const char *servname, const char *who);
void rageircd_cmd_join(const char *user, const char *channel, time_t chantime);
void rageircd_cmd_unsqline(const char *user);
void rageircd_cmd_invite(const char *source, const char *chan, const char *nick);
void rageircd_cmd_part(const char *nick, const char *chan, const char *buf);
void rageircd_SendPong(const char *servname, const char *who);
void rageircd_SendJoin(const char *user, const char *channel, time_t chantime);
void rageircd_SendSQLineDel(const char *user);
void rageircd_SendInvite(const char *source, const char *chan, const char *nick);
void rageircd_SendPart(const char *nick, const char *chan, const char *buf);
void rageircd_cmd_391(const char *source, const char *timestr);
void rageircd_cmd_250(const char *buf);
void rageircd_cmd_307(const char *buf);
@@ -83,8 +83,8 @@ void rageircd_cmd_318(const char *source, const char *who);
void rageircd_cmd_242(const char *buf);
void rageircd_cmd_243(const char *buf);
void rageircd_cmd_211(const char *buf);
void rageircd_cmd_global(const char *source, const char *buf);
void rageircd_cmd_global_legacy(const char *source, const char *fmt);
void rageircd_SendGlobops(const char *source, const char *buf);
void rageircd_SendGlobops_legacy(const char *source, const char *fmt);
void rageircd_cmd_sqline(const char *mask, const char *reason);
void rageircd_cmd_squit(const char *servname, const char *message);
void rageircd_cmd_svso(const char *source, const char *nick, const char *flag);
+16 -16
View File
@@ -199,7 +199,7 @@ void solidircd_set_umode(User * user, int ac, const char **av)
opcnt++;
if (WallOper)
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"\2%s\2 is now an IRC operator.",
user->nick);
display_news(user, NEWS_OPER);
@@ -778,7 +778,7 @@ void SolidIRCdProto::SendAkillDel(const char *user, const char *host)
}
/* PART */
void solidircd_cmd_part(const char *nick, const char *chan, const char *buf)
void solidircd_SendPart(const char *nick, const char *chan, const char *buf)
{
if (!nick || !chan) {
return;
@@ -800,13 +800,13 @@ void solidircd_cmd_topic(const char *whosets, const char *chan, const char *whos
}
/* UNSQLINE */
void solidircd_cmd_unsqline(const char *user)
void solidircd_SendSQLineDel(const char *user)
{
send_cmd(NULL, "UNSQLINE %s", user);
}
/* JOIN - SJOIN */
void solidircd_cmd_join(const char *user, const char *channel, time_t chantime)
void solidircd_SendJoin(const char *user, const char *channel, time_t chantime)
{
send_cmd(user, "SJOIN %ld %s", (long int) chantime, channel);
}
@@ -871,7 +871,7 @@ void solidircd_cmd_squit(const char *servname, const char *message)
}
/* PONG */
void solidircd_cmd_pong(const char *servname, const char *who)
void solidircd_SendPong(const char *servname, const char *who)
{
send_cmd(servname, "PONG %s", who);
}
@@ -1114,7 +1114,7 @@ void solidircd_SendGlobalPrivmsg(const char *source, const char *dest, const cha
}
/* GLOBOPS */
void solidircd_cmd_global(const char *source, const char *buf)
void solidircd_SendGlobops(const char *source, const char *buf)
{
if (!buf) {
return;
@@ -1287,7 +1287,7 @@ void solidircd_cmd_376(const char *source)
}
/* INVITE */
void solidircd_cmd_invite(const char *source, const char *chan, const char *nick)
void solidircd_SendInvite(const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick) {
return;
@@ -1320,7 +1320,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
solidircd_cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
solidircd_SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -1548,7 +1548,7 @@ void solidircd_cmd_jupe(const char *jserver, const char *who, const char *reason
}
/* GLOBOPS - to handle old WALLOPS */
void solidircd_cmd_global_legacy(const char *source, const char *fmt)
void solidircd_SendGlobops_legacy(const char *source, const char *fmt)
{
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
}
@@ -1619,11 +1619,11 @@ void moduleAddAnopeCmds()
pmodule_SendBotOp(solidircd_cmd_bot_chan_mode);
pmodule_cmd_351(solidircd_cmd_351);
pmodule_SendQuit(solidircd_cmd_quit);
pmodule_cmd_pong(solidircd_cmd_pong);
pmodule_cmd_join(solidircd_cmd_join);
pmodule_cmd_unsqline(solidircd_cmd_unsqline);
pmodule_cmd_invite(solidircd_cmd_invite);
pmodule_cmd_part(solidircd_cmd_part);
pmodule_SendPong(solidircd_cmd_pong);
pmodule_SendJoin(solidircd_cmd_join);
pmodule_SendSQLineDel(solidircd_cmd_unsqline);
pmodule_SendInvite(solidircd_cmd_invite);
pmodule_SendPart(solidircd_cmd_part);
pmodule_cmd_391(solidircd_cmd_391);
pmodule_cmd_250(solidircd_cmd_250);
pmodule_cmd_307(solidircd_cmd_307);
@@ -1636,8 +1636,8 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(solidircd_cmd_242);
pmodule_cmd_243(solidircd_cmd_243);
pmodule_cmd_211(solidircd_cmd_211);
pmodule_cmd_global(solidircd_cmd_global);
pmodule_cmd_global_legacy(solidircd_cmd_global_legacy);
pmodule_SendGlobops(solidircd_cmd_global);
pmodule_SendGlobops_legacy(solidircd_cmd_global_legacy);
pmodule_cmd_sqline(solidircd_cmd_sqline);
pmodule_cmd_squit(solidircd_cmd_squit);
pmodule_cmd_svso(solidircd_cmd_svso);
+7 -7
View File
@@ -90,11 +90,11 @@ void solidircd_SendGlobalPrivmsg(const char *source, const char *dest, const cha
void solidircd_SendBotOp(const char *nick, const char *chan);
void solidircd_cmd_351(const char *source);
void solidircd_SendQuit(const char *source, const char *buf);
void solidircd_cmd_pong(const char *servname, const char *who);
void solidircd_cmd_join(const char *user, const char *channel, time_t chantime);
void solidircd_cmd_unsqline(const char *user);
void solidircd_cmd_invite(const char *source, const char *chan, const char *nick);
void solidircd_cmd_part(const char *nick, const char *chan, const char *buf);
void solidircd_SendPong(const char *servname, const char *who);
void solidircd_SendJoin(const char *user, const char *channel, time_t chantime);
void solidircd_SendSQLineDel(const char *user);
void solidircd_SendInvite(const char *source, const char *chan, const char *nick);
void solidircd_SendPart(const char *nick, const char *chan, const char *buf);
void solidircd_cmd_391(const char *source, const char *timestr);
void solidircd_cmd_250(const char *buf);
void solidircd_cmd_307(const char *buf);
@@ -107,8 +107,8 @@ void solidircd_cmd_318(const char *source, const char *who);
void solidircd_cmd_242(const char *buf);
void solidircd_cmd_243(const char *buf);
void solidircd_cmd_211(const char *buf);
void solidircd_cmd_global(const char *source, const char *buf);
void solidircd_cmd_global_legacy(const char *source, const char *fmt);
void solidircd_SendGlobops(const char *source, const char *buf);
void solidircd_SendGlobops_legacy(const char *source, const char *fmt);
void solidircd_cmd_sqline(const char *mask, const char *reason);
void solidircd_cmd_squit(const char *servname, const char *message);
void solidircd_cmd_svso(const char *source, const char *nick, const char *flag);
+16 -16
View File
@@ -204,7 +204,7 @@ void ultimate3_set_umode(User * user, int ac, const char **av)
if (add) {
opcnt++;
if (WallOper) {
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"\2%s\2 is now an IRC operator.",
user->nick);
}
@@ -727,7 +727,7 @@ void ultimate3_cmd_vhost_on(const char *nick, const char *vIdent, const char *vh
send_cmd(ServerName, "SETHOST %s %s", nick, vhost);
}
void ultimate3_cmd_join(const char *user, const char *channel, time_t chantime)
void ultimate3_SendJoin(const char *user, const char *channel, time_t chantime)
{
send_cmd(user, "SJOIN %ld %s", (long int) chantime, channel);
}
@@ -772,7 +772,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
ultimate3_cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
ultimate3_SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -1196,13 +1196,13 @@ void ultimate3_cmd_server(const char *servname, int hop, const char *descript)
}
/* PONG */
void ultimate3_cmd_pong(const char *servname, const char *who)
void ultimate3_SendPong(const char *servname, const char *who)
{
send_cmd(servname, "PONG %s", who);
}
/* UNSQLINE */
void ultimate3_cmd_unsqline(const char *user)
void ultimate3_SendSQLineDel(const char *user)
{
if (!user) {
return;
@@ -1229,7 +1229,7 @@ void ultimate3_cmd_chgident(const char *nick, const char *vIdent)
}
/* INVITE */
void ultimate3_cmd_invite(const char *source, const char *chan, const char *nick)
void ultimate3_SendInvite(const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick) {
return;
@@ -1239,7 +1239,7 @@ void ultimate3_cmd_invite(const char *source, const char *chan, const char *nick
}
/* PART */
void ultimate3_cmd_part(const char *nick, const char *chan, const char *buf)
void ultimate3_SendPart(const char *nick, const char *chan, const char *buf)
{
if (!nick || !chan) {
@@ -1377,7 +1377,7 @@ void ultimate3_cmd_211(const char *buf)
}
/* GLOBOPS */
void ultimate3_cmd_global(const char *source, const char *buf)
void ultimate3_SendGlobops(const char *source, const char *buf)
{
if (!buf) {
return;
@@ -1656,7 +1656,7 @@ void ultimate3_cmd_jupe(const char *jserver, const char *who, const char *reason
}
/* GLOBOPS - to handle old WALLOPS */
void ultimate3_cmd_global_legacy(const char *source, const char *fmt)
void ultimate3_SendGlobops_legacy(const char *source, const char *fmt)
{
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
}
@@ -1727,11 +1727,11 @@ void moduleAddAnopeCmds()
pmodule_SendBotOp(ultimate3_cmd_bot_chan_mode);
pmodule_cmd_351(ultimate3_cmd_351);
pmodule_SendQuit(ultimate3_cmd_quit);
pmodule_cmd_pong(ultimate3_cmd_pong);
pmodule_cmd_join(ultimate3_cmd_join);
pmodule_cmd_unsqline(ultimate3_cmd_unsqline);
pmodule_cmd_invite(ultimate3_cmd_invite);
pmodule_cmd_part(ultimate3_cmd_part);
pmodule_SendPong(ultimate3_cmd_pong);
pmodule_SendJoin(ultimate3_cmd_join);
pmodule_SendSQLineDel(ultimate3_cmd_unsqline);
pmodule_SendInvite(ultimate3_cmd_invite);
pmodule_SendPart(ultimate3_cmd_part);
pmodule_cmd_391(ultimate3_cmd_391);
pmodule_cmd_250(ultimate3_cmd_250);
pmodule_cmd_307(ultimate3_cmd_307);
@@ -1744,8 +1744,8 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(ultimate3_cmd_242);
pmodule_cmd_243(ultimate3_cmd_243);
pmodule_cmd_211(ultimate3_cmd_211);
pmodule_cmd_global(ultimate3_cmd_global);
pmodule_cmd_global_legacy(ultimate3_cmd_global_legacy);
pmodule_SendGlobops(ultimate3_cmd_global);
pmodule_SendGlobops_legacy(ultimate3_cmd_global_legacy);
pmodule_cmd_sqline(ultimate3_cmd_sqline);
pmodule_cmd_squit(ultimate3_cmd_squit);
pmodule_cmd_svso(ultimate3_cmd_svso);
+7 -7
View File
@@ -76,11 +76,11 @@ void ultimate3_SendGlobalPrivmsg(const char *source, const char *dest, const cha
void ultimate3_SendBotOp(const char *nick, const char *chan);
void ultimate3_cmd_351(const char *source);
void ultimate3_SendQuit(const char *source, const char *buf);
void ultimate3_cmd_pong(const char *servname, const char *who);
void ultimate3_cmd_join(const char *user, const char *channel, time_t chantime);
void ultimate3_cmd_unsqline(const char *user);
void ultimate3_cmd_invite(const char *source, const char *chan, const char *nick);
void ultimate3_cmd_part(const char *nick, const char *chan, const char *buf);
void ultimate3_SendPong(const char *servname, const char *who);
void ultimate3_SendJoin(const char *user, const char *channel, time_t chantime);
void ultimate3_SendSQLineDel(const char *user);
void ultimate3_SendInvite(const char *source, const char *chan, const char *nick);
void ultimate3_SendPart(const char *nick, const char *chan, const char *buf);
void ultimate3_cmd_391(const char *source, const char *timestr);
void ultimate3_cmd_250(const char *buf);
void ultimate3_cmd_307(const char *buf);
@@ -93,8 +93,8 @@ void ultimate3_cmd_318(const char *source, const char *who);
void ultimate3_cmd_242(const char *buf);
void ultimate3_cmd_243(const char *buf);
void ultimate3_cmd_211(const char *buf);
void ultimate3_cmd_global(const char *source, const char *buf);
void ultimate3_cmd_global_legacy(const char *source, const char *fmt);
void ultimate3_SendGlobops(const char *source, const char *buf);
void ultimate3_SendGlobops_legacy(const char *source, const char *fmt);
void ultimate3_cmd_sqline(const char *mask, const char *reason);
void ultimate3_cmd_squit(const char *servname, const char *message);
void ultimate3_cmd_svso(const char *source, const char *nick, const char *flag);
+16 -16
View File
@@ -191,7 +191,7 @@ void viagra_set_umode(User * user, int ac, const char **av)
if (add) {
opcnt++;
if (WallOper) {
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"\2%s\2 is now an IRC operator.",
user->nick);
}
@@ -787,7 +787,7 @@ void ViagraIRCdProto::SendAkillDel(const char *user, const char *host)
}
/* PART */
void viagra_cmd_part(const char *nick, const char *chan, const char *buf)
void viagra_SendPart(const char *nick, const char *chan, const char *buf)
{
if (!nick || !chan) {
return;
@@ -822,12 +822,12 @@ void viagra_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhost
send_cmd(NULL, "SVSCHGHOST %s %s", nick, vhost);
}
void viagra_cmd_unsqline(const char *user)
void viagra_SendSQLineDel(const char *user)
{
send_cmd(NULL, "UNSQLINE %s", user);
}
void viagra_cmd_join(const char *user, const char *channel, time_t chantime)
void viagra_SendJoin(const char *user, const char *channel, time_t chantime)
{
send_cmd(user, "SJOIN %ld %s", (long int) chantime, channel);
}
@@ -905,7 +905,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
viagra_cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
viagra_SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -922,7 +922,7 @@ void viagra_cmd_squit(const char *servname, const char *message)
}
/* PONG */
void viagra_cmd_pong(const char *servname, const char *who)
void viagra_SendPong(const char *servname, const char *who)
{
send_cmd(servname, "PONG %s", who);
}
@@ -1184,7 +1184,7 @@ void viagra_SendGlobalPrivmsg(const char *source, const char *dest, const char *
}
/* GLOBOPS */
void viagra_cmd_global(const char *source, const char *buf)
void viagra_SendGlobops(const char *source, const char *buf)
{
if (!buf) {
return;
@@ -1373,7 +1373,7 @@ void viagra_cmd_376(const char *source)
}
/* INVITE */
void viagra_cmd_invite(const char *source, const char *chan, const char *nick)
void viagra_SendInvite(const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick) {
return;
@@ -1555,7 +1555,7 @@ void viagra_cmd_jupe(const char *jserver, const char *who, const char *reason)
}
/* GLOBOPS - to handle old WALLOPS */
void viagra_cmd_global_legacy(const char *source, const char *fmt)
void viagra_SendGlobops_legacy(const char *source, const char *fmt)
{
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
}
@@ -1626,11 +1626,11 @@ void moduleAddAnopeCmds()
pmodule_SendBotOp(viagra_cmd_bot_chan_mode);
pmodule_cmd_351(viagra_cmd_351);
pmodule_SendQuit(viagra_cmd_quit);
pmodule_cmd_pong(viagra_cmd_pong);
pmodule_cmd_join(viagra_cmd_join);
pmodule_cmd_unsqline(viagra_cmd_unsqline);
pmodule_cmd_invite(viagra_cmd_invite);
pmodule_cmd_part(viagra_cmd_part);
pmodule_SendPong(viagra_cmd_pong);
pmodule_SendJoin(viagra_cmd_join);
pmodule_SendSQLineDel(viagra_cmd_unsqline);
pmodule_SendInvite(viagra_cmd_invite);
pmodule_SendPart(viagra_cmd_part);
pmodule_cmd_391(viagra_cmd_391);
pmodule_cmd_250(viagra_cmd_250);
pmodule_cmd_307(viagra_cmd_307);
@@ -1643,8 +1643,8 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(viagra_cmd_242);
pmodule_cmd_243(viagra_cmd_243);
pmodule_cmd_211(viagra_cmd_211);
pmodule_cmd_global(viagra_cmd_global);
pmodule_cmd_global_legacy(viagra_cmd_global_legacy);
pmodule_SendGlobops(viagra_cmd_global);
pmodule_SendGlobops_legacy(viagra_cmd_global_legacy);
pmodule_cmd_sqline(viagra_cmd_sqline);
pmodule_cmd_squit(viagra_cmd_squit);
pmodule_cmd_svso(viagra_cmd_svso);
+7 -7
View File
@@ -85,11 +85,11 @@ void viagra_SendGlobalPrivmsg(const char *source, const char *dest, const char *
void viagra_SendBotOp(const char *nick, const char *chan);
void viagra_cmd_351(const char *source);
void viagra_SendQuit(const char *source, const char *buf);
void viagra_cmd_pong(const char *servname, const char *who);
void viagra_cmd_join(const char *user, const char *channel, time_t chantime);
void viagra_cmd_unsqline(const char *user);
void viagra_cmd_invite(const char *source, const char *chan, const char *nick);
void viagra_cmd_part(const char *nick, const char *chan, const char *buf);
void viagra_SendPong(const char *servname, const char *who);
void viagra_SendJoin(const char *user, const char *channel, time_t chantime);
void viagra_SendSQLineDel(const char *user);
void viagra_SendInvite(const char *source, const char *chan, const char *nick);
void viagra_SendPart(const char *nick, const char *chan, const char *buf);
void viagra_cmd_391(const char *source, const char *timestr);
void viagra_cmd_250(const char *buf);
void viagra_cmd_307(const char *buf);
@@ -102,8 +102,8 @@ void viagra_cmd_318(const char *source, const char *who);
void viagra_cmd_242(const char *buf);
void viagra_cmd_243(const char *buf);
void viagra_cmd_211(const char *buf);
void viagra_cmd_global(const char *source, const char *buf);
void viagra_cmd_global_legacy(const char *source, const char *fmt);
void viagra_SendGlobops(const char *source, const char *buf);
void viagra_SendGlobops_legacy(const char *source, const char *fmt);
void viagra_cmd_sqline(const char *mask, const char *reason);
void viagra_cmd_squit(const char *servname, const char *message);
void viagra_cmd_svso(const char *source, const char *nick, const char *flag);
+8 -8
View File
@@ -166,7 +166,7 @@ void RatboxProto::set_umode(User *user, int ac, const char **av)
case 'o':
if (add) {
++opcnt;
if (WallOper) anope_cmd_global(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
if (WallOper) anope_SendGlobops(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
display_news(user, NEWS_OPER);
}
else --opcnt;
@@ -446,7 +446,7 @@ void RatboxProto::cmd_privmsg(const char *source, const char *dest, const char *
send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "PRIVMSG %s :%s", UseTS6 ? (ud2 ? ud2->uid : dest) : dest, buf);
}
void RatboxProto::cmd_global(const char *source, const char *buf)
void RatboxProto::SendGlobops(const char *source, const char *buf)
{
if (!buf) return;
if (source) {
@@ -711,13 +711,13 @@ void RatboxProto::cmd_topic(const char *whosets, const char *chan, const char *w
send_cmd(UseTS6 ? (ud ? ud->uid : whosets) : whosets, "TOPIC %s :%s", chan, topic);
}
void RatboxProto::cmd_unsqline(const char *user)
void RatboxProto::SendSQLineDel(const char *user)
{
Uid *ud = find_uid(s_OperServ);
send_cmd(UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ, "UNRESV * %s", user);
}
void RatboxProto::cmd_join(const char *user, const char *channel, time_t chantime)
void RatboxProto::SendJoin(const char *user, const char *channel, time_t chantime)
{
Uid *ud = find_uid(user);
send_cmd(NULL, "SJOIN %ld %s + :%s", static_cast<long>(chantime), channel, UseTS6 ? (ud ? ud->uid : user) : user);
@@ -834,7 +834,7 @@ void RatboxProto::SendClientIntroduction(const char *nick, const char *user, con
cmd_sqline(nick, "Reserved for services");
}
void RatboxProto::cmd_part(const char *nick, const char *chan, const char *buf)
void RatboxProto::SendPart(const char *nick, const char *chan, const char *buf)
{
Uid *ud = find_uid(nick);
if (buf) send_cmd(UseTS6 ? ud->uid : nick, "PART %s :%s", chan, buf);
@@ -845,7 +845,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
ircd_proto.cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
ircd_proto.SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
@@ -1057,14 +1057,14 @@ void RatboxProto::SendQuit(const char *source, const char *buf)
}
/* PONG */
void RatboxProto::cmd_pong(const char *servname, const char *who)
void RatboxProto::SendPong(const char *servname, const char *who)
{
if (UseTS6) send_cmd(TS6SID, "PONG %s", who);
else send_cmd(servname, "PONG %s", who);
}
/* INVITE */
void RatboxProto::cmd_invite(const char *source, const char *chan, const char *nick)
void RatboxProto::SendInvite(const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick) return;
Uid *ud = find_uid(source);
+6 -6
View File
@@ -61,12 +61,12 @@ class RatboxProto : public IRCDProto {
void cmd_privmsg(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void SendQuit(const char *, const char *);
void cmd_pong(const char *, const char *);
void cmd_join(const char *, const char *, time_t);
void cmd_unsqline(const char *);
void cmd_invite(const char *, const char *, const char *);
void cmd_part(const char *, const char *, const char *);
void cmd_global(const char *, const char *);
void SendPong(const char *, const char *);
void SendJoin(const char *, const char *, time_t);
void SendSQLineDel(const char *);
void SendInvite(const char *, const char *, const char *);
void SendPart(const char *, const char *, const char *);
void SendGlobops(const char *, const char *);
void cmd_sqline(const char *, const char *);
void cmd_svsnick(const char *, const char *, time_t) { } // Ratbox doesn't have an SVSNICK command
void cmd_connect();
+4 -4
View File
@@ -443,7 +443,7 @@ void UnrealIRCdProto::set_umode(User *user, int ac, const char **av)
case 'o':
if (add) {
++opcnt;
if (WallOper) anope_cmd_global(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
if (WallOper) anope_SendGlobops(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick);
display_news(user, NEWS_OPER);
}
else --opcnt;
@@ -630,7 +630,7 @@ void UnrealIRCdProto::cmd_server(const char *servname, int hop, const char *desc
}
/* JOIN */
void UnrealIRCdProto::cmd_join(const char *user, const char *channel, time_t chantime)
void UnrealIRCdProto::SendJoin(const char *user, const char *channel, time_t chantime)
{
send_cmd(ServerName, "%s !%s %s :%s", send_token("SJOIN", "~"), base64enc(static_cast<long>(chantime)), channel, user);
/* send_cmd(user, "%s %s", send_token("JOIN", "C"), channel); */
@@ -640,7 +640,7 @@ void UnrealIRCdProto::cmd_join(const char *user, const char *channel, time_t cha
** parv[0] = sender
** parv[1] = nickmask
*/
void UnrealIRCdProto::cmd_unsqline(const char *user)
void UnrealIRCdProto::SendSQLineDel(const char *user)
{
if (!user) return;
send_cmd(NULL, "%s %s", send_token("UNSQLINE", "d"), user);
@@ -726,7 +726,7 @@ int anope_event_ping(const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
ircd_proto.cmd_pong(ac > 1 ? av[1] : ServerName, av[0]);
ircd_proto.SendPong(ac > 1 ? av[1] : ServerName, av[0]);
return MOD_CONT;
}
+2 -2
View File
@@ -95,8 +95,8 @@ class UnrealIRCdProto : public IRCDProto {
void SendKick(const char *, const char *, const char *, const char *);
void SendNoticeChanops(const char *, const char *, const char *);
void SendBotOp(const char *, const char *);
void cmd_join(const char *, const char *, time_t);
void cmd_unsqline(const char *);
void SendJoin(const char *, const char *, time_t);
void SendSQLineDel(const char *);
void cmd_sqline(const char *, const char *);
void cmd_svso(const char *, const char *, const char *);
void cmd_chg_nick(const char *, const char *);
+1 -1
View File
@@ -408,7 +408,7 @@ void do_squit(const char *source, int ac, const char **av)
if (s->flags & SERVER_JUPED) {
snprintf(buf, BUFSIZE, "Received SQUIT for juped server %s",
s->name);
anope_cmd_global(s_OperServ, buf);
anope_SendGlobops(s_OperServ, buf);
}
snprintf(buf, sizeof(buf), "%s %s", s->name,
+4 -4
View File
@@ -239,7 +239,7 @@ int add_session(const char *nick, const char *host, char *hostip)
add_akill(NULL, akillmask, s_OperServ,
time(NULL) + SessionAutoKillExpiry,
"Session limit exceeded");
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"Added a temporary AKILL for \2%s\2 due to excessive connections",
akillmask);
}
@@ -288,7 +288,7 @@ void del_session(const char *host)
if (!session) {
if (debug) {
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"WARNING: Tried to delete non-existant session: \2%s",
host);
alog("session: Tried to delete non-existant session: %s",
@@ -335,7 +335,7 @@ void expire_exceptions(void)
if (exceptions[i].expires == 0 || exceptions[i].expires > now)
continue;
if (WallExceptionExpire)
anope_cmd_global(s_OperServ,
anope_SendGlobops(s_OperServ,
"Session limit exception for %s has expired.",
exceptions[i].mask);
free(exceptions[i].mask);
@@ -443,7 +443,7 @@ void load_exceptions()
restore_db(f); \
log_perror("Write error on %s", ExceptionDBName); \
if (time(NULL) - lastwarn > WarningTimeout) { \
anope_cmd_global(NULL, "Write error on %s: %s", ExceptionDBName, \
anope_SendGlobops(NULL, "Write error on %s: %s", ExceptionDBName, \
strerror(errno)); \
lastwarn = time(NULL); \
} \