diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-11 16:50:33 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-11 17:13:14 +0000 |
commit | d6ced860212a1eae49484c3bfbf80b16d585d3c9 (patch) | |
tree | 75cd1fda051257e0642f51bccad70b3167554aac | |
parent | 0d8d1675f78af6c75b5cb09a89b8d9919f72eb1e (diff) |
Fix some module names that were missed in commit 4056af00e3.
-rw-r--r-- | modules/protocol/inspircd.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp index ef5e22e71..9691aa367 100644 --- a/modules/protocol/inspircd.cpp +++ b/modules/protocol/inspircd.cpp @@ -1149,12 +1149,12 @@ struct IRCDMessageCapab : Message::Capab if (modname.equals_cs("svshold")) IRCD->CanSVSHold = true; - else if (module.find("m_rline.so") == 0) + else if (modname.equals_cs("rline")) { Servers::Capab.insert("RLINE"); const Anope::string ®exengine = Config->GetBlock("options")->Get<const Anope::string>("regexengine"); - if (!regexengine.empty() && module.length() > 11 && regexengine != module.substr(11)) - Log() << "Warning: InspIRCd is using regex engine " << module.substr(11) << ", but we have " << regexengine << ". This may cause inconsistencies."; + if (!regexengine.empty() && regexengine != moddata) + Log() << "Warning: InspIRCd is using regex engine " << modname << ", but we have " << regexengine << ". This may cause inconsistencies."; } else if (modname.equals_cs("topiclock")) Servers::Capab.insert("TOPICLOCK"); @@ -1170,15 +1170,15 @@ struct IRCDMessageCapab : Message::Capab Servers::Capab.insert("CHGHOST"); else if (modname.equals_cs("chgident")) Servers::Capab.insert("CHGIDENT"); - else if (module == "m_channelban.so") + else if (modname.equals_cs("channelban")) ModeManager::AddChannelMode(new InspIRCdExtban::ChannelMatcher("CHANNELBAN", "BAN", 'j')); - else if (module == "m_gecosban.so") + else if (modname.equals_cs("gecosban")) ModeManager::AddChannelMode(new InspIRCdExtban::RealnameMatcher("REALNAMEBAN", "BAN", 'r')); - else if (module == "m_nopartmsg.so") + else if (modname.equals_cs("nopartmsg")) ModeManager::AddChannelMode(new InspIRCdExtban::EntryMatcher("PARTMESSAGEBAN", "BAN", 'p')); - else if (module == "m_serverban.so") + else if (modname.equals_cs("serverban")) ModeManager::AddChannelMode(new InspIRCdExtban::ServerMatcher("SERVERBAN", "BAN", 's')); - else if (module == "m_muteban.so") + else if (modname.equals_cs("muteban")) ModeManager::AddChannelMode(new InspIRCdExtban::EntryMatcher("QUIET", "BAN", 'm')); } } |