sources/interface.cpp

changeset 29
e534f2f78196
parent 28
3cc042af3090
child 30
21fba5183768
--- a/sources/interface.cpp	Mon Dec 15 01:47:40 2014 +0200
+++ b/sources/interface.cpp	Mon Dec 15 02:03:08 2014 +0200
@@ -306,13 +306,8 @@
 
 		case RCON_CONNECTED:
 			{
-				String adminText;
-
-				if (session->num_admins() == 0)
-					adminText = "No other admins";
-				else
-					adminText = format ("%1 other admin%s1", session->num_admins());
-
+				String adminText = (session->num_admins() == 0) ? "No other admins"
+					: format ("%1 other admin%s1", session->num_admins());
 				text = format ("%1 | %2 | %3", session->address().to_string (IP_WITH_PORT),
 					session->level(), adminText);
 			}

mercurial