Make identd check easier to read

This commit is contained in:
Berke Viktor 2012-10-13 04:25:39 +02:00
parent b43e567dbf
commit de7a4aee31
1 changed files with 6 additions and 4 deletions

View File

@ -962,12 +962,14 @@ server_read_child (GIOChannel *source, GIOCondition condition, server *serv)
#ifdef WIN32 #ifdef WIN32
if (prefs.identd) if (prefs.identd)
{ {
if (serv->network) if (serv->network && ((ircnet *)serv->network)->user)
identd_start ((((ircnet *)serv->network)->user) ? {
(((ircnet *)serv->network)->user) : identd_start (((ircnet *)serv->network)->user);
prefs.username); }
else else
{
identd_start (prefs.username); identd_start (prefs.username);
}
} }
#else #else
snprintf (outbuf, sizeof (outbuf), "%s/auth/xchat_auth", snprintf (outbuf, sizeof (outbuf), "%s/auth/xchat_auth",