mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
relay: add signal "relay_client_auth_ok" for irc and weechat protocols
This commit is contained in:
@@ -7901,6 +7901,11 @@ List of signals sent by WeeChat and plugins:
|
||||
Pointer: relay client |
|
||||
Waiting for authentication from a relay client
|
||||
|
||||
| relay | relay_client_auth_ok +
|
||||
_(WeeChat ≥ 0.4.4)_ |
|
||||
Pointer: relay client |
|
||||
Successful authentication from a relay client
|
||||
|
||||
| relay | relay_client_connected +
|
||||
_(WeeChat ≥ 0.4.4)_ |
|
||||
Pointer: relay client |
|
||||
|
||||
@@ -8041,6 +8041,11 @@ Liste des signaux envoyés par WeeChat et les extensions :
|
||||
Pointeur : client relay |
|
||||
Attente de l'authentification d'un client relay
|
||||
|
||||
| relay | relay_client_auth_ok +
|
||||
_(WeeChat ≥ 0.4.4)_ |
|
||||
Pointeur : client relay |
|
||||
Authentification réussie d'un client relay
|
||||
|
||||
| relay | relay_client_connected +
|
||||
_(WeeChat ≥ 0.4.4)_ |
|
||||
Pointeur : client relay |
|
||||
|
||||
@@ -8062,6 +8062,12 @@ List of signals sent by WeeChat and plugins:
|
||||
Pointer: relay client |
|
||||
Waiting for authentication from a relay client
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| relay | relay_client_auth_ok +
|
||||
_(WeeChat ≥ 0.4.4)_ |
|
||||
Pointer: relay client |
|
||||
Successful authentication from a relay client
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| relay | relay_client_connected +
|
||||
_(WeeChat ≥ 0.4.4)_ |
|
||||
|
||||
@@ -7901,6 +7901,12 @@ WeeChat とプラグインが送信するシグナルのリスト:
|
||||
Pointer: リレークライアント |
|
||||
リレークライアントからの認証待ち
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| relay | relay_client_auth_ok +
|
||||
_(WeeChat バージョン 0.4.4 以上で利用可)_ |
|
||||
Pointer: リレークライアント |
|
||||
Successful authentication from a relay client
|
||||
|
||||
| relay | relay_client_connected +
|
||||
_(WeeChat バージョン 0.4.4 以上で利用可)_ |
|
||||
Pointer: リレークライアント |
|
||||
|
||||
@@ -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