summary refs log tree commit diff stats
path: root/src/common/server.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-13 04:25:39 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-13 04:25:39 +0200
commitde7a4aee314d41d07ca5e2a0563a35ab7f6c6862 (patch)
treeb02191fa0dae2fba48c0283cbf4b213201f094c9 /src/common/server.c
parentb43e567dbf46d274782b1ae3851d0db696190c0b (diff)
Make identd check easier to read
Diffstat (limited to 'src/common/server.c')
-rw-r--r--src/common/server.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/server.c b/src/common/server.c
index df410f62..a7166876 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -962,12 +962,14 @@ server_read_child (GIOChannel *source, GIOCondition condition, server *serv)
 #ifdef WIN32
 		if (prefs.identd)
 		{
-			if (serv->network)
-				identd_start ((((ircnet *)serv->network)->user) ?
-									(((ircnet *)serv->network)->user) :
-									prefs.username);
+			if (serv->network && ((ircnet *)serv->network)->user)
+			{
+				identd_start (((ircnet *)serv->network)->user);
+			}
 			else
+			{
 				identd_start (prefs.username);
+			}
 		}
 #else
 		snprintf (outbuf, sizeof (outbuf), "%s/auth/xchat_auth",