From 9b23dbcd3a86aeca7685d779e9c8b70abf3fbc50 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Fri, 26 Feb 2010 22:25:18 +0000 Subject: * Separate namelog from admin * Client to namelog mapping * Merge mute, denybuild, ptr in namelog; remove ptr --- src/ui/ui_main.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/ui') diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index f9c2d7f4..22b35637 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -3018,28 +3018,6 @@ static void UI_RunMenuScript( char **args ) if( ( cmd = uiInfo.humanBuildList[ uiInfo.humanBuildIndex ].cmd ) ) trap_Cmd_ExecuteText( EXEC_APPEND, cmd ); } - else if( Q_stricmp( name, "PTRCRestore" ) == 0 ) - { - int len; - char text[ 16 ]; - fileHandle_t f; - char command[ 32 ]; - - // load the file - len = trap_FS_FOpenFile( "ptrc.cfg", &f, FS_READ ); - - if( len > 0 && ( len < sizeof( text ) - 1 ) ) - { - trap_FS_Read( text, len, f ); - text[ len ] = 0; - - Com_sprintf( command, 32, "ptrcrestore %s", text ); - - trap_Cmd_ExecuteText( EXEC_APPEND, command ); - } - if( len > -1 ) - trap_FS_FCloseFile( f ); - } else if( Q_stricmp( name, "Say" ) == 0 ) { char buffer[ MAX_CVAR_VALUE_STRING ]; -- cgit