diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/relay/irc/relay-irc.c | 5 | ||||
-rw-r--r-- | src/plugins/relay/weechat/relay-weechat-protocol.c | 5 |
2 files changed, 10 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); } } 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); } } |