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

v2.8-utf8proc
Sébastien Helleu 2014-04-13 08:27:27 +02:00
parent 96086b1666
commit a311764d12
6 changed files with 32 additions and 0 deletions

View File

@ -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 |

View File

@ -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 |

View File

@ -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)_ |

View File

@ -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: リレークライアント |

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);
}
}

View File

@ -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);
}
}