]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_connflood.cpp
OnRehash changes: split to multiple hooks to clarify use and prevent explosion of...
[user/henk/code/inspircd.git] / src / modules / m_connflood.cpp
index bd97adfd5df35081a6592f5652984f81555ca6f5..6828d28f2e58b143e65b172758d497244e43f569 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -80,7 +80,7 @@ public:
                        {
                                /* expire throttle */
                                throttled = 0;
-                               ServerInstance->SNO->WriteToSnoMask('A', "Connection throttle deactivated");
+                               ServerInstance->SNO->WriteGlobalSno('a', "Connection throttle deactivated");
                                return 0;
                        }
 
@@ -93,7 +93,7 @@ public:
                        if (conns >= maxconns)
                        {
                                throttled = 1;
-                               ServerInstance->SNO->WriteToSnoMask('A', "Connection throttle activated");
+                               ServerInstance->SNO->WriteGlobalSno('a', "Connection throttle activated");
                                ServerInstance->Users->QuitUser(user, quitmsg);
                                return 1;
                        }
@@ -106,7 +106,7 @@ public:
                return 0;
        }
 
-       virtual void OnRehash(User* user, const std::string &parameter)
+       virtual void OnRehash(User* user)
        {
                InitConf();
        }