]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_antibottler.cpp
Added 005 numeric handling to most of the modules
[user/henk/code/inspircd.git] / src / modules / m_antibottler.cpp
index 61e6bdc3681bc20c193199db88e329d5abfb9e12..efa2de7e2a3dcc92cf1d0c12bb82294ed609e1fc 100644 (file)
@@ -1,3 +1,19 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *                       E-mail:
+ *                <brain@chatspike.net>
+ *               <Craig@chatspike.net>
+ *     
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
@@ -26,7 +42,7 @@ class ModuleAntiBottler : public Module
        }
 
 
-       virtual void OnServerRaw(std::string &raw, bool inbound)
+       virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user)
        {
                if (inbound)
                {
@@ -46,15 +62,15 @@ class ModuleAntiBottler : public Module
                                        }
                                }
                                // Bug Fix (#14) -- FCS
-                               if (!strlen(data)) break;                               
+                               if (!strlen(data)) return;                              
                                char *user = strtok(data," ");
-                               if (!strlen(data)) break;
+                               if (!strlen(data)) return;
                                char *ident = strtok(NULL," ");
-                               if (!strlen(data)) break;
+                               if (!strlen(data)) return;
                                char *local = strtok(NULL," ");
-                               if (!strlen(data)) break;
+                               if (!strlen(data)) return;
                                char *remote = strtok(NULL," :");
-                               if (!strlen(data)) break;
+                               if (!strlen(data)) return;
                                char *gecos = strtok(NULL,"\r\n");
                                for (int j = 0; j < strlen(remote); j++)
                                {