From b28d18c3d3a67a4b40feb98cd1a8ed4a7100f596 Mon Sep 17 00:00:00 2001 From: earth-metal <38820385+earth-metal@users.noreply.github.com> Date: Thu, 27 Sep 2018 08:20:46 -0400 Subject: [PATCH] Improve recognition of lines with bot-characters in 3ZBConfig. The original formatting of 3ZBConfig was causing 3 "blank" bot characters to be loaded into the initial slots of the list of bot characters. Decrementing the counter when it reaches an improperly formatted line prevents this. --- src/bot_func.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bot_func.c b/src/bot_func.c index 3a91d22..7161786 100644 --- a/src/bot_func.c +++ b/src/bot_func.c @@ -142,7 +142,11 @@ MESS_NOTFOUND: if(Buff[0] == '[') break; if(Buff[0] == '\n' || Buff[0] == '#') {i--;continue;} j = 2,k = 1; - if(!strncmp(Buff,"\\\\",2)) + if(strncmp(Buff,"\\\\",2)) + { + i--; + } + else { //netname if(Get_YenPos(Buff,&k))