]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixed a GCC2 incompatibility, replaced break with return
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 25 Apr 2004 20:47:47 +0000 (20:47 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 25 Apr 2004 20:47:47 +0000 (20:47 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@730 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_antibottler.cpp

index 61e6bdc3681bc20c193199db88e329d5abfb9e12..9c6cd21c370dc9a038c98267312a0cc4ed366699 100644 (file)
@@ -46,15 +46,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++)
                                {