1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 15:26:37 +02:00

relay: add signal "relay_client_auth_ok" for irc and weechat protocols

This commit is contained in:
Sébastien Helleu
2014-04-13 08:27:27 +02:00
parent 96086b1666
commit a311764d12
6 changed files with 32 additions and 0 deletions
+5
View File
@@ -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);
}
}
@@ -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);
}
}