Browse Source

Add files via upload

master
shelru 8 years ago committed by GitHub
parent
commit
7b02d40718
  1. 2
      MiniBase/client.cpp
  2. 18
      MiniBase/enginemsg.cpp

2
MiniBase/client.cpp

@ -151,7 +151,7 @@ void InitHack(){ @@ -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");

18
MiniBase/enginemsg.cpp

@ -94,12 +94,8 @@ bool BlackList(char *str){ @@ -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){ @@ -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;
}

Loading…
Cancel
Save