diff options
Diffstat (limited to 'src/plugins/relay/api/relay-api.c')
-rw-r--r-- | src/plugins/relay/api/relay-api.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/relay/api/relay-api.c b/src/plugins/relay/api/relay-api.c index 054ddbf29..e20e147f7 100644 --- a/src/plugins/relay/api/relay-api.c +++ b/src/plugins/relay/api/relay-api.c @@ -208,14 +208,16 @@ relay_api_alloc_with_infolist (struct t_relay_client *client, RELAY_API_DATA(client, sync_colors) = weechat_infolist_integer ( infolist, "sync_colors"); - if (!RELAY_CLIENT_HAS_ENDED(client) && RELAY_API_DATA(client, sync_enabled)) + if (!RELAY_STATUS_HAS_ENDED(client->status) + && RELAY_API_DATA(client, sync_enabled)) + { relay_api_hook_signals (client); + } } /* - * Returns the client initial status: it is always "waiting_auth" for API - * protocol because we always expect the "init" command, even without any - * password. + * Returns the client initial status: it is always "authenticating" for API + * protocol because we always expect the client to authenticate. */ enum t_relay_status @@ -224,7 +226,7 @@ relay_api_get_initial_status (struct t_relay_client *client) /* make C compiler happy */ (void) client; - return RELAY_STATUS_WAITING_AUTH; + return RELAY_STATUS_AUTHENTICATING; } /* |