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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user