Browse Source

Add files via upload

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

2
MiniBase/client.cpp

@ -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");

16
MiniBase/enginemsg.cpp

@ -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,15 +111,19 @@ 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;
} }
void SVC_SendCvarValue(){ void SVC_SendCvarValue(){

Loading…
Cancel
Save