From 4085f5dedc915399760ed14a6a9b404509aecf44 Mon Sep 17 00:00:00 2001 From: frostycoolslug Date: Sun, 25 Apr 2004 13:19:46 +0000 Subject: Fixed USER bug (Bugtracker #14) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@723 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_antibottler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp index d6a47fa90..61e6bdc36 100644 --- a/src/modules/m_antibottler.cpp +++ b/src/modules/m_antibottler.cpp @@ -45,10 +45,16 @@ class ModuleAntiBottler : public Module not_bottler = true; } } + // Bug Fix (#14) -- FCS + if (!strlen(data)) break; char *user = strtok(data," "); + if (!strlen(data)) break; char *ident = strtok(NULL," "); + if (!strlen(data)) break; char *local = strtok(NULL," "); + if (!strlen(data)) break; char *remote = strtok(NULL," :"); + if (!strlen(data)) break; char *gecos = strtok(NULL,"\r\n"); for (int j = 0; j < strlen(remote); j++) { -- cgit v1.2.3