summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay-client.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-03-05 11:49:25 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-03-05 11:49:25 +0100
commit2d7778292abaf4e5686035d3994cf2e3b2f9a026 (patch)
treed9e6d5a36403ddef41ed47c47d074922de624be5 /src/plugins/relay/relay-client.h
parent0995eb334f919f2038b8409aab17f2d67470c381 (diff)
downloadweechat-2d7778292abaf4e5686035d3994cf2e3b2f9a026.zip
relay: add info "relay_client_count" with optional status name as argument
Use in evaluated strings (for example in /eval or triggers): - "${info:relay_client_count}": total number of relay clients (any status) With a specific status: - "${info:relay_client_count,connecting}" - "${info:relay_client_count,waiting_auth}" - "${info:relay_client_count,connected}" - "${info:relay_client_count,auth_failed}" - "${info:relay_client_count,disconnected}"
Diffstat (limited to 'src/plugins/relay/relay-client.h')
-rw-r--r--src/plugins/relay/relay-client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/relay/relay-client.h b/src/plugins/relay/relay-client.h
index 5ee8dd9b7..148e6aeec 100644
--- a/src/plugins/relay/relay-client.h
+++ b/src/plugins/relay/relay-client.h
@@ -113,6 +113,7 @@ extern int relay_client_count;
extern int relay_client_valid (struct t_relay_client *client);
extern struct t_relay_client *relay_client_search_by_number (int number);
extern struct t_relay_client *relay_client_search_by_id (int id);
+extern int relay_client_status_search (const char *name);
extern void relay_client_set_desc (struct t_relay_client *client);
extern int relay_client_recv_cb (void *arg_client, int fd);
extern int relay_client_send (struct t_relay_client *client, const char *data,