diff options
author | M. Kristall <mkpdev@gmail.com> | 2009-10-26 02:40:00 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:07 +0000 |
commit | a991bfdb01fcde30ab2fd793392d0f54ce345f17 (patch) | |
tree | 66eacbddb92a2d019b8f23fdf8b0998f4256d408 /src | |
parent | f4d446c36d14bcf0017da2415c770b531e4be155 (diff) |
* Remove a redundant condition (thanks Ensiform)
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_admin.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index f44d4fb7..7798d8c0 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -2733,13 +2733,7 @@ qboolean G_admin_namelog( gentity_t *ent, int skiparg ) { G_SanitiseString( n->name[ j ], n2, sizeof( n2 ) ); if( strstr( n2, s2 ) ) - { - G_SanitiseString( n->name[ j ], n2, sizeof( n2 ) ); - if( strstr( n2, s2 ) ) - { - break; - } - } + break; } if( j == MAX_ADMIN_NAMELOG_NAMES || !n->name[ j ][ 0 ] ) continue; |