summaryrefslogtreecommitdiff
path: root/src/messages.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-10-22 16:16:32 +0100
committerSadie Powell <sadie@witchery.services>2024-10-22 16:29:22 +0100
commitf1751dcb213b953ff362eda3276e210258a7cdb2 (patch)
treefab818dd75eaafee74d0b80e9d3da3e28aa0244c /src/messages.cpp
parent8b026135492c13ae030b27cb6ec6c5b09131c0bd (diff)
Replace usestrictprivmsg with something actually useful.
Every IRC server we support (other than Bahamut which is probably on the chopping bock) uses UIDs so this setting does nothing. Instead, allow configuring a server-side alias for each service and use that when servicealias is enabled.
Diffstat (limited to 'src/messages.cpp')
-rw-r--r--src/messages.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/messages.cpp b/src/messages.cpp
index b21a27f37..4c252f666 100644
--- a/src/messages.cpp
+++ b/src/messages.cpp
@@ -324,18 +324,8 @@ void Privmsg::Run(MessageSource &source, const std::vector<Anope::string> &param
if (!servername.equals_ci(Me->GetName()))
return;
}
- else if (!IRCD->RequiresID && Config->UseStrictPrivmsg)
- {
- BotInfo *bi = BotInfo::Find(receiver);
- if (!bi)
- return;
- Log(LOG_DEBUG) << "Ignored PRIVMSG without @ from " << u->nick;
- u->SendMessage(bi, _("\"/msg %s\" is no longer supported. Use \"/msg %s@%s\" or \"/%s\" instead."), bi->nick.c_str(), bi->nick.c_str(), Me->GetName().c_str(), bi->nick.c_str());
- return;
- }
BotInfo *bi = BotInfo::Find(botname, nick_only);
-
if (bi)
{
Anope::string ctcpname, ctcpbody;