304 text = "Connecting to " + session->address().to_string (IP_WITH_PORT) + "..."; |
304 text = "Connecting to " + session->address().to_string (IP_WITH_PORT) + "..."; |
305 break; |
305 break; |
306 |
306 |
307 case RCON_CONNECTED: |
307 case RCON_CONNECTED: |
308 { |
308 { |
309 String adminText; |
309 String adminText = (session->num_admins() == 0) ? "No other admins" |
310 |
310 : format ("%1 other admin%s1", session->num_admins()); |
311 if (session->num_admins() == 0) |
|
312 adminText = "No other admins"; |
|
313 else |
|
314 adminText = format ("%1 other admin%s1", session->num_admins()); |
|
315 |
|
316 text = format ("%1 | %2 | %3", session->address().to_string (IP_WITH_PORT), |
311 text = format ("%1 | %2 | %3", session->address().to_string (IP_WITH_PORT), |
317 session->level(), adminText); |
312 session->level(), adminText); |
318 } |
313 } |
319 break; |
314 break; |
320 } |
315 } |