tried to fix parse_lines
[NeonServV5.git] / IRCParser.c
index bfc722b0335dbde910d6bef346a124988fef5286..187aeb6475263af61b46dd3110ab570a99cf17b3 100644 (file)
@@ -16,8 +16,8 @@ int parse_lines(struct ClientSocket *client, char *lines, int len) {
         if(lines[i] == '\n') {
             lines[i] = 0;
             parse_line(client, lines);
-            startpos = i+1;
             lines += i-startpos;
+            startpos = i+1;
         }
     }
     return startpos;