Fix disabling identd server
This commit is contained in:
parent
086d4e3962
commit
16d1fccf61
@ -156,10 +156,10 @@ identd_start_server (void)
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
int enabled, port = 113;
|
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)
|
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))
|
if (hexchat_get_prefs (ph, "identd_port", NULL, &port) == 2 && (port <= 0 || port > G_MAXUINT16))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user