]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_timedbans.cpp
We were already sending FMODE +nt after each channel creation to keep services happy...
[user/henk/code/inspircd.git] / src / modules / m_timedbans.cpp
index a1fb41439e2898f04fe270c525e312ee32d44f6e..473785149ced082ddcc771ffe086aa562dbbe35d 100644 (file)
@@ -6,22 +6,19 @@
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
- *            the file COPYING for details.
+ *         the file COPYING for details.
  *
  * ---------------------------------------------------
  */
 
 /* $ModDesc: Adds timed bans */
 
-#include <stdio.h>
-#include <vector>
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
 #include "hashcomp.h"
 #include "configreader.h"
-#include "inspircd.h"
-
 
 /** Holds a timed ban
  */
@@ -176,14 +173,14 @@ class ModuleTimedBans : public Module
                                                // falls into the abyss :p
                                                userrec* temp = new userrec(ServerInstance);
                                                temp->SetFd(FD_MAGIC_NUMBER);
-                                                /* FIX: Send mode remotely*/
-                                                std::deque<std::string> n;
-                                                n.push_back(setban[0]);
-                                                n.push_back("-b");
-                                                n.push_back(setban[2]);
+                                               /* FIX: Send mode remotely*/
+                                               std::deque<std::string> n;
+                                               n.push_back(setban[0]);
+                                               n.push_back("-b");
+                                               n.push_back(setban[2]);
                                                ServerInstance->SendMode(setban,3,temp);
-                                                Event rmode((char *)&n, NULL, "send_mode");
-                                                rmode.Send(ServerInstance);
+                                               Event rmode((char *)&n, NULL, "send_mode");
+                                               rmode.Send(ServerInstance);
                                                DELETE(temp);
                                        }
                                        else