X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_antibottler.cpp;h=efa2de7e2a3dcc92cf1d0c12bb82294ed609e1fc;hb=28c82e83802100a2b7b6dadf5333a199c9fbe663;hp=61e6bdc3681bc20c193199db88e329d5abfb9e12;hpb=4085f5dedc915399760ed14a6a9b404509aecf44;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp index 61e6bdc36..efa2de7e2 100644 --- a/src/modules/m_antibottler.cpp +++ b/src/modules/m_antibottler.cpp @@ -1,3 +1,19 @@ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * Inspire is copyright (C) 2002-2004 ChatSpike-Dev. + * E-mail: + * + * + * + * 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++) {