summaryrefslogtreecommitdiff
path: root/src/plugins/relay/irc/relay-irc.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-04-12 17:46:46 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-04-12 17:46:46 +0200
commit7ddc815726da0f471cbd92896da383bc8bed81f4 (patch)
tree1f55443f261d3c4834705a6b9e3f8bd721267a80 /src/plugins/relay/irc/relay-irc.h
parent07505bb53cbb7c159eaeb52699121903f3001602 (diff)
downloadweechat-7ddc815726da0f471cbd92896da383bc8bed81f4.zip
relay: actually use the client status "waiting_auth" in irc and weechat protocols (closes #1358)
Now the status "waiting_auth" is used and displayed in the relay buffer. When a client connects, there are now 2 messages (except for irc protocol if there's no password required): relay: new client on port 9000: 1/weechat/1.2.3.4 (waiting auth) relay: client 1/weechat/1.2.3.4 authenticated If the authentication fails, the messages are: relay: new client on port 9000: 1/weechat/1.2.3.4 (waiting auth) =!= relay: authentication failed with client 1/weechat/1.2.3.4
Diffstat (limited to 'src/plugins/relay/irc/relay-irc.h')
-rw-r--r--src/plugins/relay/irc/relay-irc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/relay/irc/relay-irc.h b/src/plugins/relay/irc/relay-irc.h
index b0de0e786..095fc6691 100644
--- a/src/plugins/relay/irc/relay-irc.h
+++ b/src/plugins/relay/irc/relay-irc.h
@@ -21,6 +21,7 @@
#define WEECHAT_PLUGIN_RELAY_IRC_H
struct t_relay_client;
+enum t_relay_status;
#define RELAY_IRC_DATA(client, var) \
(((struct t_relay_irc_data *)client->protocol_data)->var)
@@ -69,6 +70,7 @@ extern void relay_irc_close_connection (struct t_relay_client *client);
extern void relay_irc_alloc (struct t_relay_client *client);
extern void relay_irc_alloc_with_infolist (struct t_relay_client *client,
struct t_infolist *infolist);
+extern enum t_relay_status relay_irc_get_initial_status (struct t_relay_client *client);
extern void relay_irc_free (struct t_relay_client *client);
extern int relay_irc_add_to_infolist (struct t_infolist_item *item,
struct t_relay_client *client);