From 08007a721ef12623057188b0475e0738008ecd3f Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 30 Jul 2006 11:21:51 +0000 Subject: Fix to send out modes remotely when a ban expires so that other ircds have their bans removed (they used to rely upon the expiry of the ban at the opposite end of the connection by the other end's m_timedbans, now they dont have to) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4595 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 610057ae3..9477a37f6 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.2.3