From 7b02d40718344e1250cd854c43c3cfba87c45c03 Mon Sep 17 00:00:00 2001 From: shelru Date: Sat, 15 Oct 2016 19:19:48 +0300 Subject: [PATCH] Add files via upload --- MiniBase/client.cpp | 2 +- MiniBase/enginemsg.cpp | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/MiniBase/client.cpp b/MiniBase/client.cpp index 0172087..3dbbd11 100644 --- a/MiniBase/client.cpp +++ b/MiniBase/client.cpp @@ -151,7 +151,7 @@ void InitHack(){ } if (!(g_Engine.Con_IsVisible() != 0))g_Engine.pfnClientCmd("toggleconsole"); - ConsolePrintColor(0, 255, 11, "-- Extra Mirror v2.0a\n"); + ConsolePrintColor(0, 255, 11, "-- Extra Mirror v2.1\n"); ConsolePrintColor(255, 255, 255, "-- Use 'credits' for more information\n"); ConsolePrintColor(255, 255, 255, "-- Thank's to Realwar for title\n"); ConsolePrintColor(255, 255, 255, "-- Thank's to FightMagister for functions\n"); diff --git a/MiniBase/enginemsg.cpp b/MiniBase/enginemsg.cpp index 06c0f2c..08cf24f 100644 --- a/MiniBase/enginemsg.cpp +++ b/MiniBase/enginemsg.cpp @@ -94,12 +94,8 @@ bool BlackList(char *str){ quotes = 0; for (i = 0; i < len; i++){ if (text[i] == '\"') quotes++; - if (!(quotes & 1) && text[i] == ';') - break; - if (text[i] == '\n') - break; - if (text[i] == 0x00) - break; + if (text[i] == '\n')break; + if (text[i] == 0x00)break; } if (i >= MAX_CMD_LINE)i = MAX_CMD_LINE; strncpy(command, text, i);command[i] = 0; @@ -115,14 +111,18 @@ bool BlackList(char *str){ if (type->value == 0){ char *a = isGood ?"[Extra Mirror] execute: \"" :"[Extra Mirror] blocked: \""; if (logsfiles->value > 0){ConsolePrintColor(255, 255, 255, ("%s", a));ConsolePrintColor(255, 255, 255, ("%s", c));ConsolePrintColor(255, 255, 255, "\"\n");} + len -= i; + if (!isGood) { strncpy(text, text + i, len); text[len] = 0; text++; changed = true; } + else { text += i + 1; } } else { char *a = isGood ? "[Extra Mirror] blocked: \"" : "[Extra Mirror] execute: \""; if (logsfiles->value > 0) { ConsolePrintColor(255, 255, 255, ("%s", a)); ConsolePrintColor(255, 255, 255, ("%s", c)); ConsolePrintColor(255, 255, 255, "\"\n"); } + len -= i; + if (isGood) { strncpy(text, text + i, len); text[len] = 0; text++; changed = true; } + else { text += i + 1; } } - len -= i; - if (!isGood){strncpy(text, text + i, len);text[len] = 0;text++;changed = true;} - else{text += i + 1;} + } return changed; }