--- deliantra/server/common/init.C 2008/04/15 03:16:02 1.44 +++ deliantra/server/common/init.C 2008/05/06 17:05:17 1.45 @@ -246,8 +246,10 @@ { if (*buf == '#') continue; + if ((cp = strchr (buf, '\n')) != NULL) *cp = '\0'; + cp = buf; while (*cp == ' ') /* Skip blanks */ cp++; @@ -263,11 +265,13 @@ attack_mess[mess][level].buf2 = NULL; attack_mess[mess][level].buf3 = NULL; } + level = 0; mess = atoi (p); mode = 1; continue; } + if (mode == 1) { p = strtok (buf, "="); @@ -307,6 +311,8 @@ continue; } } + LOG (llevDebug, "got %d messages in %d categories.\n", total, mess + 1); close_and_delete (fp, comp); } +