From 18c9cd69405d99e138b95eca7f6d31b9d90fd98d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 30 Jul 2006 11:21:03 +0000 Subject: Fix m_timedbans to send out the mode removal REMOTELY on expire so that other servers have the mode removed git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4594 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules/m_timedbans.cpp') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 9cf3201f5..02976e8f6 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -175,6 +175,13 @@ class ModuleTimedBans : public Module temp->fd = FD_MAGIC_NUMBER; temp->server = ""; Srv->SendMode(setban,3,temp); + /* FIX: Send mode remotely*/ + std::deque n; + n.push_back(i->channel); + n.push_back("-b"); + n.push_back(i->mask); + Event rmode((char *)&n, NULL, "send_mode"); + rmode.Send(); delete temp; } else -- cgit v1.3.1-10-gc9f91