1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-23 08:08:54 -05:00

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

View File

@ -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",