From 59ca4eec57a9c8b37e79e3031c74b59d4803fc28 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 13:12:10 +0000 Subject: 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 --- src/modules/m_timedbans.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_timedbans.cpp') 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 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) -- cgit v1.3.1-10-gc9f91