1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 10:23:13 +02:00

set_umode -> ProcessUsermodes

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1314 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-10-02 14:20:56 +00:00
parent e87a9e0ac6
commit 4fbf03aaba
30 changed files with 57 additions and 57 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
#define s_akill(user, host, who, when, expires, reason) \
anope_SendAkill(user, host, who, when, expires, reason)
#define set_umode(user, ac, av) anope_set_umode(user, ac, av)
#define ProcessUsermodes(user, ac, av) anope_set_umode(user, ac, av)
#define s_svsnoop(server, set) anope_SendSVSNOOP(server, set)
+1 -1
View File
@@ -1244,7 +1244,7 @@ EI int anope_event_netglobal(const char *source, int ac, const char **av);
EI int anope_event_invite(const char *source, int ac, const char **av);
E int anope_event_null(const char *source, int ac, const char **av);
E void anope_set_umode(User * user, int ac, const char **av);
E void anope_ProcessUsermodes(User * user, int ac, const char **av);
E void anope_SendSVID(const char *nick, time_t ts);
E void anope_SendSVID2(User *u, const char *ts);
E void anope_SendSVID3(User *u, const char *ts);
+1 -1
View File
@@ -1347,7 +1347,7 @@ class IRCDProto {
SendServer(jserver, 2, rbuf);
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
virtual void set_umode(User *, int, const char **) = 0;
virtual void ProcessUsermodes(User *, int, const char **) = 0;
virtual int valid_nick(const char *) { return 1; }
virtual int valid_chan(const char *) { return 1; }
virtual int flood_mode_check(const char *) { return 0; }
+1 -1
View File
@@ -219,7 +219,7 @@ void common_svsmode(User * u, const char *modes, const char *arg)
}
anope_SendSVSMode(u, ac, av);
anope_set_umode(u, ac, av);
anope_ProcessUsermodes(u, ac, av);
}
/*************************************************************************/
+2 -2
View File
@@ -38,9 +38,9 @@ void pmodule_ircd_proto(IRCDProto *proto)
ircdproto = proto;
}
void anope_set_umode(User *user, int ac, const char **av)
void anope_ProcessUsermodes(User *user, int ac, const char **av)
{
ircdproto->set_umode(user, ac, av);
ircdproto->ProcessUsermodes(user, ac, av);
}
void anope_SendSVSNOOP(const char *server, int set)
+2 -2
View File
@@ -148,7 +148,7 @@ IRCDCAPAB myIrcdcap[] = {
};
void BahamutIRCdProto::set_umode(User *user, int ac, const char **av)
void BahamutIRCdProto::ProcessUsermodes(User *user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -525,7 +525,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
strtoul(av[2], NULL, 10), strtoul(av[7], NULL, 0),
strtoul(av[8], NULL, 0), NULL, NULL);
if (user) {
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
}
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
+1 -1
View File
@@ -89,6 +89,6 @@ class BahamutIRCdProto : public IRCDProto {
void SendSVID3(User *, const char *);
void SendEOB();
void SendServer(const char *, int, const char *);
void set_umode(User *, int, const char **);
void ProcessUsermodes(User *, int, const char **);
int flood_mode_check(const char *);
} ircd_proto;
+4 -4
View File
@@ -146,7 +146,7 @@ IRCDCAPAB myIrcdcap[] = {
/*******************************************************************/
void CharybdisProto::set_umode(User *user, int ac, const char **av)
void CharybdisProto::ProcessUsermodes(User *user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -489,14 +489,14 @@ int anope_event_nick(const char *source, int ac, const char **av)
user = do_nick("", av[0], av[4], av[5], s->name, av[8],
strtoul(av[2], NULL, 10), 0, 0, NULL, av[7]);
if (user) {
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
}
} else {
if (ac != 2) {
user = do_nick(source, av[0], av[4], av[5], av[6], av[7],
strtoul(av[2], NULL, 10), 0, 0, NULL, NULL);
if (user)
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
strtoul(av[1], NULL, 10), 0, 0, NULL, NULL);
@@ -533,7 +533,7 @@ int anope_event_euid(const char *source, int ac, const char **av)
user = do_nick("", av[0], av[4], !strcmp(av[8], "*") ? av[5] : av[8], s->name, av[10],
ts, !stricmp(av[0], av[9]) ? ts : 0, 0, av[5], av[7]);
if (user) {
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
}
}
return MOD_CONT;
+1 -1
View File
@@ -74,7 +74,7 @@ class CharybdisProto : public IRCDTS6Proto {
void SendSGLineDel(const char *);
void SendSGLine(const char *, const char *);
void SendServer(const char *, int, const char *);
void set_umode(User *, int, const char **);
void ProcessUsermodes(User *, int, const char **);
int valid_nick(const char *);
int flood_mode_check(const char *);
void cmd_numeric(const char *, int, const char *, const char *);
+2 -2
View File
@@ -394,7 +394,7 @@ static int has_messagefloodmod = 0;
static int has_banexceptionmod = 0;
static int has_inviteexceptionmod = 0;
void InspIRCdProto::set_umode(User *user, int ac, const char **av)
void InspIRCdProto::ProcessUsermodes(User *user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -1092,7 +1092,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
av[7], /* realname */
ts, svid, htonl(*ad), av[3], NULL);
if (user) {
anope_set_umode(user, 1, &av[5]);
anope_ProcessUsermodes(user, 1, &av[5]);
user->chost = av[3];
}
}
+1 -1
View File
@@ -93,7 +93,7 @@ class InspIRCdProto : public IRCDProto {
void SendSVSPart(const char *, const char *, const char *);
void SendEOB();
void SendServer(const char *, int, const char *);
void set_umode(User *, int, const char **);
void ProcessUsermodes(User *, int, const char **);
int flood_mode_check(const char *);
void cmd_numeric(const char *, int, const char *, const char *);
} ircd_proto;
+3 -3
View File
@@ -146,7 +146,7 @@ IRCDCAPAB myIrcdcap[] = {
void hybrid_set_umode(User * user, int ac, const char **av)
void hybrid_ProcessUsermodes(User * user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -531,7 +531,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
User *user = do_nick(source, av[0], av[4], av[5], av[6], av[7],
strtoul(av[2], NULL, 10), 0, 0, NULL, NULL);
if (user)
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
strtoul(av[1], NULL, 10), 0, 0, NULL, NULL);
@@ -1524,7 +1524,7 @@ void moduleAddAnopeCmds()
pmodule_valid_nick(hybrid_valid_nick);
pmodule_valid_chan(hybrid_valid_chan);
pmodule_SendCTCP(hybrid_cmd_ctcp);
pmodule_set_umode(hybrid_set_umode);
pmodule_ProcessUsermodes(hybrid_set_umode);
}
/**
+1 -1
View File
@@ -43,7 +43,7 @@
#define DEFAULT_MLOCK CMODE_n | CMODE_t
void hybrid_set_umode(User * user, int ac, const char **av);
void hybrid_ProcessUsermodes(User * user, int ac, const char **av);
void hybrid_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
void hybrid_SendVhostDel(User * u);
void hybrid_SendAkill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
+3 -3
View File
@@ -145,7 +145,7 @@ IRCDCAPAB myIrcdcap[] = {
void
plexus_set_umode (User * user, int ac, const char **av)
plexus_ProcessUsermodes (User * user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -563,7 +563,7 @@ anope_event_nick (const char *source, int ac, const char **av)
strtoul (av[2], NULL, 10),
strtoul (av[7], NULL, 0), 0, av[5], NULL);
if (user)
anope_set_umode (user, 1, &av[3]);
anope_ProcessUsermodes (user, 1, &av[3]);
}
else
{
@@ -1808,7 +1808,7 @@ moduleAddAnopeCmds ()
pmodule_valid_nick (plexus_valid_nick);
pmodule_valid_chan (plexus_valid_chan);
pmodule_SendCTCP (plexus_cmd_ctcp);
pmodule_set_umode (plexus_set_umode);
pmodule_ProcessUsermodes (plexus_set_umode);
}
/**
+1 -1
View File
@@ -39,7 +39,7 @@
#define DEFAULT_MLOCK CMODE_n | CMODE_t
void plexus_set_umode(User * user, int ac, const char **av);
void plexus_ProcessUsermodes(User * user, int ac, const char **av);
void plexus_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
void plexus_SendVhostDel(User * u);
void plexus_SendAkill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
+3 -3
View File
@@ -502,7 +502,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
user = do_nick(source, av[0], av[4], av[5], av[7], av[8],
strtoul(av[2], NULL, 10), 0, 0, av[6], NULL);
if (user)
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
strtoul(av[1], NULL, 10), 0, 0, NULL, NULL);
@@ -1307,7 +1307,7 @@ void ptlink_cmd_376(const char *source)
}
void ptlink_set_umode(User * user, int ac, const char **av)
void ptlink_ProcessUsermodes(User * user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -1753,7 +1753,7 @@ void moduleAddAnopeCmds()
pmodule_valid_nick(ptlink_valid_nick);
pmodule_valid_chan(ptlink_valid_chan);
pmodule_SendCTCP(ptlink_cmd_ctcp);
pmodule_set_umode(ptlink_set_umode);
pmodule_ProcessUsermodes(ptlink_set_umode);
}
/**
+1 -1
View File
@@ -78,7 +78,7 @@
#define PTLINK_TS_CURRENT 9
#define PTLINK_TS_MIN 3
void ptlink_set_umode(User * user, int ac, const char **av);
void ptlink_ProcessUsermodes(User * user, int ac, const char **av);
void ptlink_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
void ptlink_SendVhostDel(User * u);
void ptlink_SendAkill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
+4 -4
View File
@@ -422,7 +422,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
strtoul(av[2], NULL, 10), strtoul(av[7], NULL, 0),
strtoul(av[8], NULL, 0), "*", NULL);
if (user)
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
strtoul(av[1], NULL, 10), 0, 0, NULL, NULL);
@@ -481,7 +481,7 @@ int anope_event_snick(const char *source, int ac, const char **av)
strtoul(av[1], NULL, 10), strtoul(av[8], NULL, 0),
strtoul(av[5], NULL, 0), av[6], NULL);
if (user) {
anope_set_umode(user, 1, &av[9]);
anope_ProcessUsermodes(user, 1, &av[9]);
}
}
return MOD_CONT;
@@ -783,7 +783,7 @@ void rageircd_SendConnect(int servernum)
rageircd_cmd_burst();
}
void rageircd_set_umode(User * user, int ac, const char **av)
void rageircd_ProcessUsermodes(User * user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -1633,7 +1633,7 @@ void moduleAddAnopeCmds()
pmodule_valid_nick(rageircd_valid_nick);
pmodule_valid_chan(rageircd_valid_chan);
pmodule_SendCTCP(rageircd_cmd_ctcp);
pmodule_set_umode(rageircd_set_umode);
pmodule_ProcessUsermodes(rageircd_set_umode);
}
/**
+1 -1
View File
@@ -41,7 +41,7 @@
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
void rageircd_set_umode(User * user, int ac, const char **av);
void rageircd_ProcessUsermodes(User * user, int ac, const char **av);
void rageircd_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
void rageircd_SendVhostDel(User * u);
void rageircd_SendAkill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
+3 -3
View File
@@ -147,7 +147,7 @@ IRCDCAPAB myIrcdcap[] = {
};
void solidircd_set_umode(User * user, int ac, const char **av)
void solidircd_ProcessUsermodes(User * user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -567,7 +567,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
strtoul(av[2], NULL, 10), strtoul(av[7], NULL, 0),
strtoul(av[8], NULL, 0), NULL, NULL);
if (user) {
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
}
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
@@ -1666,7 +1666,7 @@ void moduleAddAnopeCmds()
pmodule_valid_nick(solidircd_valid_nick);
pmodule_valid_chan(solidircd_valid_chan);
pmodule_SendCTCP(solidircd_cmd_ctcp);
pmodule_set_umode(solidircd_set_umode);
pmodule_ProcessUsermodes(solidircd_set_umode);
}
/**
+1 -1
View File
@@ -65,7 +65,7 @@
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
void solidircd_set_umode(User * user, int ac, const char **av);
void solidircd_ProcessUsermodes(User * user, int ac, const char **av);
void solidircd_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
void solidircd_SendVhostDel(User * u);
void solidircd_SendAkill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
+4 -4
View File
@@ -144,7 +144,7 @@ IRCDCAPAB myIrcdcap[] = {
0, 0, 0}
};
void ultimate3_set_umode(User * user, int ac, const char **av)
void ultimate3_ProcessUsermodes(User * user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -525,7 +525,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
0),
strtoul(av[8], NULL, 0), "*", NULL);
if (user)
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
strtoul(av[1], NULL, 10), 0, 0, NULL, NULL);
@@ -582,7 +582,7 @@ int anope_event_client(const char *source, int ac, const char **av)
0),
strtoul(av[10], NULL, 0), av[7], NULL);
if (user) {
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
}
}
return MOD_CONT;
@@ -1774,7 +1774,7 @@ void moduleAddAnopeCmds()
pmodule_valid_nick(ultiamte3_valid_nick);
pmodule_valid_chan(ultiamte3_valid_chan);
pmodule_SendCTCP(ultimate3_cmd_ctcp);
pmodule_set_umode(ultimate3_set_umode);
pmodule_ProcessUsermodes(ultimate3_set_umode);
}
/**
+1 -1
View File
@@ -51,7 +51,7 @@
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
void ultimate3_set_umode(User * user, int ac, const char **av);
void ultimate3_ProcessUsermodes(User * user, int ac, const char **av);
void ultimate3_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
void ultimate3_SendVhostDel(User * u);
void ultimate3_SendAkill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
+3 -3
View File
@@ -149,7 +149,7 @@ IRCDCAPAB myIrcdcap[] = {
void viagra_set_umode(User * user, int ac, const char **av)
void viagra_ProcessUsermodes(User * user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -544,7 +544,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
strtoul(av[2], NULL, 10), strtoul(av[7], NULL, 0),
strtoul(av[8], NULL, 0), "*", NULL);
if (user) {
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
}
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
@@ -1673,7 +1673,7 @@ void moduleAddAnopeCmds()
pmodule_valid_nick(viagra_valid_nick);
pmodule_valid_chan(viagra_valid_chan);
pmodule_SendCTCP(viagra_cmd_ctcp);
pmodule_set_umode(viagra_set_umode);
pmodule_ProcessUsermodes(viagra_set_umode);
}
/**
+1 -1
View File
@@ -60,7 +60,7 @@
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
void viagra_set_umode(User * user, int ac, const char **av);
void viagra_ProcessUsermodes(User * user, int ac, const char **av);
void viagra_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
void viagra_SendVhostDel(User * u);
void viagra_SendAkill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
+3 -3
View File
@@ -145,7 +145,7 @@ IRCDCAPAB myIrcdcap[] = {
0, 0, 0}
};
void RatboxProto::set_umode(User *user, int ac, const char **av)
void RatboxProto::ProcessUsermodes(User *user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -500,14 +500,14 @@ int anope_event_nick(const char *source, int ac, const char **av)
user = do_nick("", av[0], av[4], av[5], s->name, av[8],
strtoul(av[2], NULL, 10), 0, 0, "*", av[7]);
if (user) {
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
}
} else {
if (ac != 2) {
user = do_nick(source, av[0], av[4], av[5], av[6], av[7],
strtoul(av[2], NULL, 10), 0, 0, "*", NULL);
if (user)
anope_set_umode(user, 1, &av[3]);
anope_ProcessUsermodes(user, 1, &av[3]);
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
strtoul(av[1], NULL, 10), 0, 0, NULL, NULL);
+1 -1
View File
@@ -73,7 +73,7 @@ class RatboxProto : public IRCDProto {
void SendSGLineDel(const char *);
void SendSGLine(const char *, const char *);
void SendServer(const char *, int, const char *);
void set_umode(User *, int, const char **);
void ProcessUsermodes(User *, int, const char **);
int valid_nick(const char *);
void cmd_numeric(const char *, int, const char *, const char *);
} ircd_proto;
+3 -3
View File
@@ -415,7 +415,7 @@ CUMode myCumodes[128] = {
};
void UnrealIRCdProto::set_umode(User *user, int ac, const char **av)
void UnrealIRCdProto::ProcessUsermodes(User *user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
const char *modes = av[0];
@@ -1062,7 +1062,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
0),
ntohl(decode_ip(av[9])), av[8], NULL);
if (user)
anope_set_umode(user, 1, &av[7]);
anope_ProcessUsermodes(user, 1, &av[7]);
} else {
/* NON NICKIP */
@@ -1071,7 +1071,7 @@ int anope_event_nick(const char *source, int ac, const char **av)
0), 0, av[8],
NULL);
if (user)
anope_set_umode(user, 1, &av[7]);
anope_ProcessUsermodes(user, 1, &av[7]);
}
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
+1 -1
View File
@@ -118,7 +118,7 @@ class UnrealIRCdProto : public IRCDProto {
void SendSWhois(const char *, const char *, const char *);
void SendEOB();
void SendServer(const char *, int, const char *);
void set_umode(User *, int, const char **);
void ProcessUsermodes(User *, int, const char **);
int valid_nick(const char *);
int valid_chan(const char *);
int flood_mode_check(const char *);
+2 -2
View File
@@ -802,7 +802,7 @@ void do_umode(const char *source, int ac, const char **av)
return;
}
anope_set_umode(user, ac - 1, &av[1]);
anope_ProcessUsermodes(user, ac - 1, &av[1]);
}
/* Handle a UMODE2 command for a user.
@@ -820,7 +820,7 @@ void do_umode2(const char *source, int ac, const char **av)
return;
}
anope_set_umode(user, ac, &av[0]);
anope_ProcessUsermodes(user, ac, &av[0]);
}
/*************************************************************************/