diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-26 21:22:55 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-26 21:22:55 +0100 |
commit | acef7dd317416fc7f292870b64e4a1479ea865b2 (patch) | |
tree | 72dded912fb76944efc0bda96046ea46daaa589e /src/plugins | |
parent | 3d8607673ed9a1467470cf756be973db06751d71 (diff) | |
download | weechat-acef7dd317416fc7f292870b64e4a1479ea865b2.zip |
relay: move assignment after comment with important note
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/relay/relay-client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-client.c b/src/plugins/relay/relay-client.c index 6d832f594..79a3fb409 100644 --- a/src/plugins/relay/relay-client.c +++ b/src/plugins/relay/relay-client.c @@ -1797,8 +1797,6 @@ relay_client_set_status (struct t_relay_client *client, struct t_relay_server *ptr_server; int old_status; - old_status = client->status; - /* * IMPORTANT: if changes are made in this function or sub-functions called, * please also update the function relay_client_add_to_infolist: @@ -1806,6 +1804,7 @@ relay_client_set_status (struct t_relay_client *client, * a disconnected state for client in infolist (used on /upgrade -save) */ + old_status = client->status; client->status = status; if ((client->status == RELAY_STATUS_CONNECTED) |