summaryrefslogtreecommitdiff
path: root/src/plugins/relay/irc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-04-13 08:27:27 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-04-13 08:27:27 +0200
commita311764d1263f41fb1d6895013d34d2fe0a6477d (patch)
tree96599752e202282b98cd9d959668fab7a264d287 /src/plugins/relay/irc
parent96086b16665cbb41ed22eb1daf7562cb6dda0abe (diff)
downloadweechat-a311764d1263f41fb1d6895013d34d2fe0a6477d.zip
relay: add signal "relay_client_auth_ok" for irc and weechat protocols
Diffstat (limited to 'src/plugins/relay/irc')
-rw-r--r--src/plugins/relay/irc/relay-irc.c5
1 files changed, 5 insertions, 0 deletions
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);
}
}