diff options
Diffstat (limited to 'src')
27 files changed, 54 insertions, 54 deletions
diff --git a/src/actions.c b/src/actions.c index aaab1135e..08db9eb3c 100644 --- a/src/actions.c +++ b/src/actions.c @@ -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); } /*************************************************************************/ diff --git a/src/ircd.c b/src/ircd.c index 75fe8a3d7..4b549e132 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -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) diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index a9f326f72..c8d40b0bf 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -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, diff --git a/src/protocol/bahamut.h b/src/protocol/bahamut.h index 954a48c1a..d909e8bf6 100644 --- a/src/protocol/bahamut.h +++ b/src/protocol/bahamut.h @@ -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; diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index 1bcad6fec..20ad216f2 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -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; diff --git a/src/protocol/charybdis.h b/src/protocol/charybdis.h index 8165ca681..a4ae9beb7 100644 --- a/src/protocol/charybdis.h +++ b/src/protocol/charybdis.h @@ -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 *); diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 8d107e0b6..43a1a59ad 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -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]; } } diff --git a/src/protocol/inspircd11.h b/src/protocol/inspircd11.h index bb0f25960..ba13a77ee 100755 --- a/src/protocol/inspircd11.h +++ b/src/protocol/inspircd11.h @@ -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; diff --git a/src/protocol/obsolete/hybrid.c b/src/protocol/obsolete/hybrid.c index c1addb408..d69ba81d6 100644 --- a/src/protocol/obsolete/hybrid.c +++ b/src/protocol/obsolete/hybrid.c @@ -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); } /** diff --git a/src/protocol/obsolete/hybrid.h b/src/protocol/obsolete/hybrid.h index ab20b2881..5acf25484 100644 --- a/src/protocol/obsolete/hybrid.h +++ b/src/protocol/obsolete/hybrid.h @@ -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); diff --git a/src/protocol/obsolete/plexus3.c b/src/protocol/obsolete/plexus3.c index 66c48e101..6448c51f6 100644 --- a/src/protocol/obsolete/plexus3.c +++ b/src/protocol/obsolete/plexus3.c @@ -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); } /** diff --git a/src/protocol/obsolete/plexus3.h b/src/protocol/obsolete/plexus3.h index 624c4f643..1530386e3 100644 --- a/src/protocol/obsolete/plexus3.h +++ b/src/protocol/obsolete/plexus3.h @@ -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); diff --git a/src/protocol/obsolete/ptlink.c b/src/protocol/obsolete/ptlink.c index 1f93ad462..b4ce28049 100644 --- a/src/protocol/obsolete/ptlink.c +++ b/src/protocol/obsolete/ptlink.c @@ -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); } /** diff --git a/src/protocol/obsolete/ptlink.h b/src/protocol/obsolete/ptlink.h index ecabfe150..7b33057f5 100644 --- a/src/protocol/obsolete/ptlink.h +++ b/src/protocol/obsolete/ptlink.h @@ -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); diff --git a/src/protocol/obsolete/rageircd.c b/src/protocol/obsolete/rageircd.c index 0d9c49ecd..87efa1b57 100644 --- a/src/protocol/obsolete/rageircd.c +++ b/src/protocol/obsolete/rageircd.c @@ -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); } /** diff --git a/src/protocol/obsolete/rageircd.h b/src/protocol/obsolete/rageircd.h index ae8ed9b2c..11022d2d7 100644 --- a/src/protocol/obsolete/rageircd.h +++ b/src/protocol/obsolete/rageircd.h @@ -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); diff --git a/src/protocol/obsolete/solidircd.c b/src/protocol/obsolete/solidircd.c index 14e9186bd..f0def2059 100644 --- a/src/protocol/obsolete/solidircd.c +++ b/src/protocol/obsolete/solidircd.c @@ -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); } /** diff --git a/src/protocol/obsolete/solidircd.h b/src/protocol/obsolete/solidircd.h index 7ec3109c8..0f54b371c 100644 --- a/src/protocol/obsolete/solidircd.h +++ b/src/protocol/obsolete/solidircd.h @@ -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); diff --git a/src/protocol/obsolete/ultimate3.c b/src/protocol/obsolete/ultimate3.c index bb12a1dce..197944582 100644 --- a/src/protocol/obsolete/ultimate3.c +++ b/src/protocol/obsolete/ultimate3.c @@ -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); } /** diff --git a/src/protocol/obsolete/ultimate3.h b/src/protocol/obsolete/ultimate3.h index a62180377..d88badf41 100644 --- a/src/protocol/obsolete/ultimate3.h +++ b/src/protocol/obsolete/ultimate3.h @@ -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); diff --git a/src/protocol/obsolete/viagra.c b/src/protocol/obsolete/viagra.c index 29e2f8150..e4970ee64 100644 --- a/src/protocol/obsolete/viagra.c +++ b/src/protocol/obsolete/viagra.c @@ -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); } /** diff --git a/src/protocol/obsolete/viagra.h b/src/protocol/obsolete/viagra.h index 412c9cefe..1d0ff7857 100644 --- a/src/protocol/obsolete/viagra.h +++ b/src/protocol/obsolete/viagra.h @@ -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); diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 01f84c4a6..30f40682a 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -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); diff --git a/src/protocol/ratbox.h b/src/protocol/ratbox.h index 4c1e98a22..f0fa63b7e 100644 --- a/src/protocol/ratbox.h +++ b/src/protocol/ratbox.h @@ -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; diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index 12c63d182..8d7013546 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -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, diff --git a/src/protocol/unreal32.h b/src/protocol/unreal32.h index da72032cd..d6b6add29 100644 --- a/src/protocol/unreal32.h +++ b/src/protocol/unreal32.h @@ -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 *); diff --git a/src/users.c b/src/users.c index 2341149e4..16d9528e4 100644 --- a/src/users.c +++ b/src/users.c @@ -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]); } /*************************************************************************/ |