mirror of
https://github.com/anope/anope.git
synced 2026-07-07 00:23:14 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
Reference in New Issue
Block a user