From a311764d1263f41fb1d6895013d34d2fe0a6477d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 13 Apr 2014 08:27:27 +0200 Subject: relay: add signal "relay_client_auth_ok" for irc and weechat protocols --- src/plugins/relay/irc/relay-irc.c | 5 +++++ src/plugins/relay/weechat/relay-weechat-protocol.c | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'src') diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c index 3af898863..f210169d7 100644 --- a/src/plugins/relay/irc/relay-irc.c +++ b/src/plugins/relay/irc/relay-irc.c @@ -1385,7 +1385,12 @@ relay_irc_recv (struct t_relay_client *client, const char *data) if (password) { if (strcmp (password, pos_password) == 0) + { RELAY_IRC_DATA(client, password_ok) = 1; + weechat_hook_signal_send ("relay_client_auth_ok", + WEECHAT_HOOK_SIGNAL_POINTER, + client); + } free (password); } } diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c index 12226a6a6..b1fbb1b7f 100644 --- a/src/plugins/relay/weechat/relay-weechat-protocol.c +++ b/src/plugins/relay/weechat/relay-weechat-protocol.c @@ -175,7 +175,12 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(init) if (password) { if (strcmp (password, pos) == 0) + { RELAY_WEECHAT_DATA(client, password_ok) = 1; + weechat_hook_signal_send ("relay_client_auth_ok", + WEECHAT_HOOK_SIGNAL_POINTER, + client); + } free (password); } } -- cgit v1.2.3