diff options
| author | 2022-12-20 15:55:52 +0000 | |
|---|---|---|
| committer | 2022-12-20 16:02:12 +0000 | |
| commit | 8025a69a538a27f84482eff4e0e3dff50c5a69bc (patch) | |
| tree | df1404c7aa6d2bdee94739a83f5582dbceaeb4d4 /src/modules/m_callerid.cpp | |
| parent | Don't automatically fall back to ToNetwork from ToInternal. (diff) | |
Allow remapping mode and extban characters at load time.
Closes #1970.
Diffstat (limited to 'src/modules/m_callerid.cpp')
| -rw-r--r-- | src/modules/m_callerid.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index 9400f36b7..75240eb4e 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -423,12 +423,12 @@ public: { time_t now = ServerInstance->Time(); /* +g and *not* accepted */ - user->WriteNumeric(ERR_TARGUMODEG, dest->nick, "is in +g mode (server-side ignore)."); + user->WriteNumeric(ERR_TARGUMODEG, dest->nick, InspIRCd::Format("is in +%c mode (server-side ignore).", myumode.GetModeChar())); if (now > (dat->lastnotify + long(notify_cooldown))) { user->WriteNumeric(RPL_TARGNOTIFY, dest->nick, "has been informed that you messaged them."); - dest->WriteRemoteNumeric(RPL_UMODEGMSG, user->nick, InspIRCd::Format("%s@%s", user->ident.c_str(), user->GetDisplayedHost().c_str()), InspIRCd::Format("is messaging you, and you have user mode +g set. Use /ACCEPT +%s to allow.", - user->nick.c_str())); + dest->WriteRemoteNumeric(RPL_UMODEGMSG, user->nick, InspIRCd::Format("%s@%s", user->ident.c_str(), user->GetDisplayedHost().c_str()), InspIRCd::Format("is messaging you, and you have user mode +%c set. Use /ACCEPT +%s to allow.", + myumode.GetModeChar(), user->nick.c_str())); dat->lastnotify = now; } return MOD_RES_DENY; |
