summaryrefslogtreecommitdiff
path: root/source/common.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-10-15 18:07:06 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-10-15 18:07:06 +0000
commit58c8e2e0377eddcae7f44d30b78578fbedf0eaa7 (patch)
tree3643ef5da6e9e397cf4c27ff93b4722843b5c83c /source/common.c
parent2ff447b2019b5696375fbc09d87416345418cd9a (diff)
Added `sv_mvd_allow_stufftext' and `sv_mvd_password' cvars.
MVD admins now can execute arbitrary commands on behaf of the dummy MVD observer on game server side via `fwd' command, if allowed. MVD channel is now listed in the menu when it is not suspended, not just when there are active players. Made `mvdconnect' command accept --user and --pass options. When masking off high-bit characters before displaying them on system console or writing into logfile, ignore any control characters. Updated documentation.
Diffstat (limited to 'source/common.c')
-rw-r--r--source/common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/common.c b/source/common.c
index e3bf26d..16b276d 100644
--- a/source/common.c
+++ b/source/common.c
@@ -241,7 +241,12 @@ static void logfile_write( const char *string ) {
}
c = *string++;
- c &= 127;
+ if( c & 128 ) {
+ c &= 127;
+ if( c < 32 ) {
+ continue;
+ }
+ }
if( c == '\n' ) {
com_logNewline = qtrue;
}