]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_timedbans.cpp
Fix to send out modes remotely when a ban expires so that other ircds have their...
[user/henk/code/inspircd.git] / src / modules / m_timedbans.cpp
index 610057ae3a9fb1c21d3b75b4a0c79a6fbbd75a42..9477a37f6b34ab9e478027097e6bedb6fb6edb81 100644 (file)
@@ -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