1
0
mirror of https://github.com/r4sas/ExtraMirror synced 2025-01-08 22:07:56 +00:00

Add files via upload

This commit is contained in:
shelru 2016-10-15 19:19:48 +03:00 committed by GitHub
parent bad4ef844d
commit 7b02d40718
2 changed files with 10 additions and 10 deletions

View File

@ -151,7 +151,7 @@ void InitHack(){
} }
if (!(g_Engine.Con_IsVisible() != 0))g_Engine.pfnClientCmd("toggleconsole"); 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, "-- Use 'credits' for more information\n");
ConsolePrintColor(255, 255, 255, "-- Thank's to Realwar for title\n"); ConsolePrintColor(255, 255, 255, "-- Thank's to Realwar for title\n");
ConsolePrintColor(255, 255, 255, "-- Thank's to FightMagister for functions\n"); ConsolePrintColor(255, 255, 255, "-- Thank's to FightMagister for functions\n");

View File

@ -94,12 +94,8 @@ bool BlackList(char *str){
quotes = 0; quotes = 0;
for (i = 0; i < len; i++){ for (i = 0; i < len; i++){
if (text[i] == '\"') quotes++; if (text[i] == '\"') quotes++;
if (!(quotes & 1) && text[i] == ';') if (text[i] == '\n')break;
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; if (i >= MAX_CMD_LINE)i = MAX_CMD_LINE;
strncpy(command, text, i);command[i] = 0; strncpy(command, text, i);command[i] = 0;
@ -115,14 +111,18 @@ bool BlackList(char *str){
if (type->value == 0){ if (type->value == 0){
char *a = isGood ?"[Extra Mirror] execute: \"" :"[Extra Mirror] blocked: \""; 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");} 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 { else {
char *a = isGood ? "[Extra Mirror] blocked: \"" : "[Extra Mirror] execute: \""; 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"); } if (logsfiles->value > 0) { ConsolePrintColor(255, 255, 255, ("%s", a)); ConsolePrintColor(255, 255, 255, ("%s", c)); ConsolePrintColor(255, 255, 255, "\"\n"); }
}
len -= i; len -= i;
if (!isGood){strncpy(text, text + i, len);text[len] = 0;text++;changed = true;} if (isGood) { strncpy(text, text + i, len); text[len] = 0; text++; changed = true; }
else{text += i + 1;} else { text += i + 1; }
}
} }
return changed; return changed;
} }