aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-12-08 17:38:47 +0000
committerGravatar Sadie Powell2019-12-08 17:47:07 +0000
commit034dad6ab0df48172a70de70a9d0de4a9092112e (patch)
tree0e852f3554dbce37d8e2e360fa099148155e8cab /src/modules/m_timedbans.cpp
parentMove the nationalchars locale files to the docs directory. (diff)
parentClean up the initialisation of the InspIRCd class. (diff)
downloadinspircd++-034dad6ab0df48172a70de70a9d0de4a9092112e.tar.gz
inspircd++-034dad6ab0df48172a70de70a9d0de4a9092112e.tar.bz2
inspircd++-034dad6ab0df48172a70de70a9d0de4a9092112e.zip
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index edc2e2946..a1b4ac3e7 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -128,9 +128,7 @@ class CommandTban : public Command
PrefixMode* mh = ServerInstance->Modes.FindPrefixMode('h');
char pfxchar = (mh && mh->name == "halfop") ? mh->GetPrefix() : '@';
- ClientProtocol::Messages::Privmsg notice(ServerInstance->FakeClient, channel, message, MSG_NOTICE);
- channel->Write(ServerInstance->GetRFCEvents().privmsg, notice, pfxchar);
- ServerInstance->PI->SendChannelNotice(channel, pfxchar, message);
+ channel->WriteNotice(message, pfxchar);
return CMD_SUCCESS;
}
@@ -221,9 +219,7 @@ class ModuleTimedBans : public Module
PrefixMode* mh = ServerInstance->Modes.FindPrefixMode('h');
char pfxchar = (mh && mh->name == "halfop") ? mh->GetPrefix() : '@';
- ClientProtocol::Messages::Privmsg notice(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, cr, message, MSG_NOTICE);
- cr->Write(ServerInstance->GetRFCEvents().privmsg, notice, pfxchar);
- ServerInstance->PI->SendChannelNotice(cr, pfxchar, message);
+ cr->WriteNotice(message, pfxchar);
Modes::ChangeList setban;
setban.push_remove(ServerInstance->Modes.FindMode('b', MODETYPE_CHANNEL), mask);