mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
Expose 'sasl_success' to the perl side.
This commit is contained in:
parent
91c9e871c7
commit
4ccffd85ff
2 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ static void sig_cap_end(IRC_SERVER_REC *server)
|
||||||
{
|
{
|
||||||
/* The negotiation has now been terminated, if we didn't manage to
|
/* The negotiation has now been terminated, if we didn't manage to
|
||||||
* authenticate successfully with the server just disconnect. */
|
* authenticate successfully with the server just disconnect. */
|
||||||
if (server->sasl_success == FALSE &&
|
if (!server->sasl_success &&
|
||||||
settings_get_bool("sasl_disconnect_on_failure"))
|
settings_get_bool("sasl_disconnect_on_failure"))
|
||||||
server_disconnect(SERVER(server));
|
server_disconnect(SERVER(server));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ static void perl_irc_server_fill_hash(HV *hv, IRC_SERVER_REC *server)
|
||||||
(void) hv_store(hv, "isupport_sent", 13, newSViv(server->isupport_sent), 0);
|
(void) hv_store(hv, "isupport_sent", 13, newSViv(server->isupport_sent), 0);
|
||||||
|
|
||||||
(void) hv_store(hv, "cap_complete", 12, newSViv(server->cap_complete), 0);
|
(void) hv_store(hv, "cap_complete", 12, newSViv(server->cap_complete), 0);
|
||||||
|
(void) hv_store(hv, "sasl_success", 12, newSViv(server->sasl_success), 0);
|
||||||
|
|
||||||
av = newAV();
|
av = newAV();
|
||||||
for (tmp = server->cap_supported; tmp != NULL; tmp = tmp->next)
|
for (tmp = server->cap_supported; tmp != NULL; tmp = tmp->next)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue