summaryrefslogtreecommitdiff
path: root/src/modules/m_callerid.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-25 16:40:50 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-25 16:40:50 +0100
commitdbe5a1fc6f9e18765863f332a3e79d7c918d3e65 (patch)
treeeb53116004bf80b3621da7e654207e508377f9a2 /src/modules/m_callerid.cpp
parentee7567584e4792166a4d6455ca306731d8b5f28a (diff)
Add User::WriteRemoteNumeric() and switch code using SendText() to send numerics to it
Diffstat (limited to 'src/modules/m_callerid.cpp')
-rw-r--r--src/modules/m_callerid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index 149767f18..e11b326de 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -399,8 +399,8 @@ public:
if (now > (dat->lastnotify + (time_t)notify_cooldown))
{
user->WriteNumeric(RPL_TARGNOTIFY, dest->nick, "has been informed that you messaged them.");
- dest->SendText(":%s %03d %s %s %s@%s :is messaging you, and you have umode +g. Use /ACCEPT +%s to allow.",
- ServerInstance->Config->ServerName.c_str(), RPL_UMODEGMSG, dest->nick.c_str(), user->nick.c_str(), user->ident.c_str(), user->dhost.c_str(), user->nick.c_str());
+ dest->WriteRemoteNumeric(RPL_UMODEGMSG, user->nick, InspIRCd::Format("%s@%s", user->ident.c_str(), user->dhost.c_str()), InspIRCd::Format("is messaging you, and you have umode +g. Use /ACCEPT +%s to allow.",
+ user->nick.c_str()));
dat->lastnotify = now;
}
return MOD_RES_DENY;