diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-04 13:12:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-04 13:12:10 +0000 |
commit | 59ca4eec57a9c8b37e79e3031c74b59d4803fc28 (patch) | |
tree | c6c721494286bf3c042eaacaa890be256bb16bcd /src/modules/m_timedbans.cpp | |
parent | e728d9abdfd0ea41ac249273842924fe6bce6d4d (diff) |
Make all our modules use the new stuff rather than the send_ events
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9301 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r-- | src/modules/m_timedbans.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 096306b1d..d592581f5 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -164,12 +164,12 @@ class ModuleTimedBans : public Module /* Send mode remotely*/ std::deque<std::string> n; - n.push_back(setban[0]); n.push_back("-b"); n.push_back(setban[2]); + + ServerInstance->PI->SendMode(i->channel, n); ServerInstance->SendMode(setban,3, ServerInstance->FakeClient); - Event rmode((char *)&n, NULL, "send_mode"); - rmode.Send(ServerInstance); + CUList empty; cr->WriteAllExcept(ServerInstance->FakeClient, true, '@', empty, "NOTICE %s :*** Timed ban on %s expired.", cr->name, i->mask.c_str()); if (ServerInstance->Config->AllowHalfop) |