summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2011-02-07 02:49:59 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:58 +0000
commit4a78bfba99a542ba3a580a40b29f1157eab69997 (patch)
treef6bd6d8891c320ab1097f4ae8d6c757ca1a17547 /src
parent2c0695c52d281bf30f08d613e31588db19ebc4e2 (diff)
* Provide feedback when there is no match for ban, denybuild, mute, etc.
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index f58e2607..0b74e045 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -2728,7 +2728,10 @@ namelog_t *G_NamelogFromString( gentity_t *ent, char *s )
char s2[ MAX_NAME_LENGTH ] = {""};
if( !s[ 0 ] )
+ {
+ ADMP( "no slot #, namelog id, or player name provided\n" );
return NULL;
+ }
// if a number is provided, it is a clientnum or namelog id
for( i = 0; s[ i ] && isdigit( s[ i ] ); i++ );
@@ -2752,6 +2755,7 @@ namelog_t *G_NamelogFromString( gentity_t *ent, char *s )
return p;
}
+ ADMP( "invalid slot # or namelog id\n" );
return NULL;
}
@@ -2780,9 +2784,12 @@ namelog_t *G_NamelogFromString( gentity_t *ent, char *s )
return m;
if( found > 1 )
- admin_search( ent, "namelog", "recent clients", namelog_matchname,
+ admin_search( ent, "namelog", "recent players", namelog_matchname,
namelog_out, level.namelogs, s2, 0, MAX_CLIENTS, -1 );
+ if( found == 0 )
+ ADMP( "no recent player found by that name\n" );
+
return NULL;
}