diff options
Diffstat (limited to 'modules/protocol')
-rw-r--r-- | modules/protocol/bahamut.cpp | 3 | ||||
-rw-r--r-- | modules/protocol/charybdis.cpp | 7 | ||||
-rw-r--r-- | modules/protocol/inspircd12.cpp | 11 | ||||
-rw-r--r-- | modules/protocol/inspircd20.cpp | 5 | ||||
-rw-r--r-- | modules/protocol/ngircd.cpp | 6 | ||||
-rw-r--r-- | modules/protocol/plexus.cpp | 6 | ||||
-rw-r--r-- | modules/protocol/ratbox.cpp | 7 | ||||
-rw-r--r-- | modules/protocol/unreal.cpp | 7 |
8 files changed, 33 insertions, 19 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index 4b6feae2d..162b80e0b 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -484,6 +484,7 @@ class ProtoBahamut : public Module Message::Kick message_kick; Message::Kill message_kill; Message::MOTD message_motd; + Message::Notice message_notice; Message::Part message_part; Message::Ping message_ping; Message::Privmsg message_privmsg; @@ -543,7 +544,7 @@ class ProtoBahamut : public Module ProtoBahamut(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR), ircd_proto(this), message_away(this), message_capab(this), message_error(this), message_invite(this), - message_join(this), message_kick(this), message_kill(this), message_motd(this), + message_join(this), message_kick(this), message_kill(this), message_motd(this), message_notice(this), message_part(this), message_ping(this), message_privmsg(this), message_quit(this), message_squit(this), message_stats(this), message_time(this), message_version(this), message_whois(this), diff --git a/modules/protocol/charybdis.cpp b/modules/protocol/charybdis.cpp index 7d34da8d2..0ef438b7d 100644 --- a/modules/protocol/charybdis.cpp +++ b/modules/protocol/charybdis.cpp @@ -335,6 +335,7 @@ class ProtoCharybdis : public Module Message::Kill message_kill; Message::Mode message_mode; Message::MOTD message_motd; + Message::Notice message_notice; Message::Part message_part; Message::Ping message_ping; Message::Privmsg message_privmsg; @@ -394,9 +395,9 @@ class ProtoCharybdis : public Module ProtoCharybdis(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR), ircd_proto(this), message_away(this), message_capab(this), message_error(this), message_invite(this), message_kick(this), - message_kill(this), message_mode(this), message_motd(this), message_part(this), message_ping(this), - message_privmsg(this), message_quit(this), message_squit(this), message_stats(this), message_time(this), - message_topic(this), message_version(this), message_whois(this), + message_kill(this), message_mode(this), message_motd(this), message_notice(this), message_part(this), + message_ping(this), message_privmsg(this), message_quit(this), message_squit(this), message_stats(this), + message_time(this), message_topic(this), message_version(this), message_whois(this), message_bmask("IRCDMessage", "charybdis/bmask", "ratbox/bmask"), message_join("IRCDMessage", "charybdis/join", "ratbox/join"), diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 876d387d1..228f082bc 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -1281,6 +1281,7 @@ class ProtoInspIRCd : public Module Message::Kick message_kick; Message::Kill message_kill; Message::MOTD message_motd; + Message::Notice message_notice; Message::Part message_part; Message::Ping message_ping; Message::Privmsg message_privmsg; @@ -1314,8 +1315,8 @@ class ProtoInspIRCd : public Module ProtoInspIRCd(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR), ircd_proto(this), ssl(this, "ssl"), message_away(this), message_error(this), message_invite(this), message_join(this), message_kick(this), message_kill(this), - message_motd(this), message_part(this), message_ping(this), message_privmsg(this), message_quit(this), message_squit(this), - message_stats(this), message_topic(this), + message_motd(this), message_notice(this), message_part(this), message_ping(this), message_privmsg(this), message_quit(this), + message_squit(this), message_stats(this), message_topic(this), message_chgident(this), message_setname(this, "SETNAME"), message_chgname(this, "FNAME"), message_capab(this), message_endburst(this), message_fhost(this, "FHOST"), message_sethost(this, "SETHOST"), message_fjoin(this), message_fmode(this), message_ftopic(this), @@ -1342,8 +1343,12 @@ class ProtoInspIRCd : public Module { /* InspIRCd 1.2 doesn't set -r on nick change, remove -r here. Note that if we have to set +r later * this will cancel out this -r, resulting in no mode changes. + * + * Do not set -r if we dont have a NickServ loaded - DP */ - u->RemoveMode(Config->GetClient("NickServ"), "REGISTERED"); + BotInfo *NickServ = Config->GetClient("NickServ"); + if (NickServ) + u->RemoveMode(NickServ, "REGISTERED"); } }; diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index c251b93b8..d87284038 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -674,6 +674,7 @@ class ProtoInspIRCd : public Module Message::Kick message_kick; Message::Kill message_kill; Message::MOTD message_motd; + Message::Notice message_notice; Message::Part message_part; Message::Ping message_ping; Message::Privmsg message_privmsg; @@ -704,8 +705,8 @@ class ProtoInspIRCd : public Module ProtoInspIRCd(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR), ircd_proto(this), message_away(this), message_error(this), message_invite(this), message_join(this), message_kick(this), - message_kill(this), message_motd(this), message_part(this), message_ping(this), message_privmsg(this), - message_quit(this), message_squit(this), message_stats(this), message_topic(this), + message_kill(this), message_motd(this), message_notice(this), message_part(this), message_ping(this), + message_privmsg(this), message_quit(this), message_squit(this), message_stats(this), message_topic(this), message_endburst("IRCDMessage", "inspircd20/endburst", "inspircd12/endburst"), message_fhost("IRCDMessage", "inspircd20/fhost", "inspircd12/fhost"), diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp index a22828e3d..c1c4aac5c 100644 --- a/modules/protocol/ngircd.cpp +++ b/modules/protocol/ngircd.cpp @@ -573,6 +573,7 @@ class ProtongIRCd : public Module Message::Kick message_kick; Message::Kill message_kill; Message::MOTD message_motd; + Message::Notice message_notice; Message::Part message_part; Message::Ping message_ping; Message::Privmsg message_privmsg, message_squery; @@ -644,8 +645,9 @@ class ProtongIRCd : public Module ProtongIRCd(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR), ircd_proto(this), message_capab(this), message_error(this), message_invite(this), message_kick(this), message_kill(this), - message_motd(this), message_part(this), message_ping(this), message_privmsg(this), message_squery(this, "SQUERY"), - message_quit(this), message_squit(this), message_stats(this), message_time(this), message_version(this), + message_motd(this), message_notice(this), message_part(this), message_ping(this), message_privmsg(this), + message_squery(this, "SQUERY"), message_quit(this), message_squit(this), message_stats(this), message_time(this), + message_version(this), message_005(this), message_376(this), message_chaninfo(this), message_join(this), message_metadata(this), message_mode(this), message_nick(this), message_njoin(this), message_pong(this), message_server(this), diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp index cacaa59d0..9c5701d21 100644 --- a/modules/protocol/plexus.cpp +++ b/modules/protocol/plexus.cpp @@ -299,6 +299,7 @@ class ProtoPlexus : public Module Message::Kill message_kill; Message::Mode message_mode; Message::MOTD message_motd; + Message::Notice message_notice; Message::Part message_part; Message::Ping message_ping; Message::Privmsg message_privmsg; @@ -353,8 +354,9 @@ class ProtoPlexus : public Module ProtoPlexus(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR), ircd_proto(this), message_away(this), message_capab(this), message_error(this), message_invite(this), message_kick(this), message_kill(this), - message_mode(this), message_motd(this), message_part(this), message_ping(this), message_privmsg(this), message_quit(this), - message_squit(this), message_stats(this), message_time(this), message_topic(this), message_version(this), message_whois(this), + message_mode(this), message_motd(this), message_notice(this), message_part(this), message_ping(this), message_privmsg(this), + message_quit(this), message_squit(this), message_stats(this), message_time(this), message_topic(this), message_version(this), + message_whois(this), message_bmask("IRCDMessage", "plexus/bmask", "hybrid/bmask"), message_eob("IRCDMessage", "plexus/eob", "hybrid/eob"), message_join("IRCDMessage", "plexus/join", "hybrid/join"), message_nick("IRCDMessage", "plexus/nick", "hybrid/nick"), diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index 7bae048d6..570448db2 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -192,6 +192,7 @@ class ProtoRatbox : public Module Message::Kill message_kill; Message::Mode message_mode; Message::MOTD message_motd; + Message::Notice message_notice; Message::Part message_part; Message::Ping message_ping; Message::Privmsg message_privmsg; @@ -236,9 +237,9 @@ class ProtoRatbox : public Module ProtoRatbox(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR), ircd_proto(this), message_away(this), message_capab(this), message_error(this), message_invite(this), message_kick(this), - message_kill(this), message_mode(this), message_motd(this), message_part(this), message_ping(this), - message_privmsg(this), message_quit(this), message_squit(this), message_stats(this), message_time(this), - message_topic(this), message_version(this), message_whois(this), + message_kill(this), message_mode(this), message_motd(this), message_notice(this), message_part(this), + message_ping(this), message_privmsg(this), message_quit(this), message_squit(this), message_stats(this), + message_time(this), message_topic(this), message_version(this), message_whois(this), message_bmask("IRCDMessage", "ratbox/bmask", "hybrid/bmask"), message_join("IRCDMessage", "ratbox/join", "hybrid/join"), message_nick("IRCDMessage", "ratbox/nick", "hybrid/nick"), message_pong("IRCDMessage", "ratbox/pong", "hybrid/pong"), diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index 856a4aeb4..0f4147554 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -1124,6 +1124,7 @@ class ProtoUnreal : public Module Message::Kick message_kick; Message::Kill message_kill; Message::MOTD message_motd; + Message::Notice message_notice; Message::Part message_part; Message::Ping message_ping; Message::Privmsg message_privmsg; @@ -1197,9 +1198,9 @@ class ProtoUnreal : public Module ProtoUnreal(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PROTOCOL | VENDOR), ircd_proto(this), message_away(this), message_error(this), message_invite(this), message_join(this), message_kick(this), - message_kill(this), message_motd(this), message_part(this), message_ping(this), message_privmsg(this), - message_quit(this), message_squit(this), message_stats(this), message_time(this), message_version(this), - message_whois(this), + message_kill(this), message_motd(this), message_notice(this), message_part(this), message_ping(this), + message_privmsg(this), message_quit(this), message_squit(this), message_stats(this), message_time(this), + message_version(this), message_whois(this), message_capab(this), message_chghost(this), message_chgident(this), message_chgname(this), message_mode(this, "MODE"), message_svsmode(this, "SVSMODE"), message_svs2mode(this, "SVS2MODE"), message_netinfo(this), message_nick(this), message_pong(this), |