summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-30 11:21:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-30 11:21:51 +0000
commit08007a721ef12623057188b0475e0738008ecd3f (patch)
tree1bd0723e48117ca8cacf3ae23aabe09b56c10c15 /src/modules
parent2a81a451185b41ca563e6a43d24a054050ec82ee (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_timedbans.cpp7
1 files changed, 7 insertions, 0 deletions
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<std::string> 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