1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-22 07:38:51 -05:00

Fix disabling identd server

This commit is contained in:
TingPing 2015-01-03 18:00:37 -05:00
parent 086d4e3962
commit 16d1fccf61

View File

@ -156,10 +156,10 @@ identd_start_server (void)
GError *error = NULL;
int enabled, port = 113;
if (hexchat_get_prefs (ph, "identd", NULL, &enabled) == 3 && enabled)
if (hexchat_get_prefs (ph, "identd", NULL, &enabled) == 3)
{
if (!enabled)
return TRUE; /*...*/
return TRUE; /* Count as loaded successfully but don't start service */
}
if (hexchat_get_prefs (ph, "identd_port", NULL, &port) == 2 && (port <= 0 || port > G_MAXUINT16))
{