mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Replace spaces with tabs
This commit is contained in:
parent
c90c7deac3
commit
171b67441d
@ -16,7 +16,7 @@ static gboolean sasl_timeout (IRC_SERVER_REC *server)
|
|||||||
irc_send_cmd_now(server, "AUTHENTICATE *");
|
irc_send_cmd_now(server, "AUTHENTICATE *");
|
||||||
cap_finish_negotiation(server);
|
cap_finish_negotiation(server);
|
||||||
|
|
||||||
server->sasl_timeout = -1;
|
server->sasl_timeout = -1;
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -42,10 +42,10 @@ static void sasl_start (IRC_SERVER_REC *server, const char *data, const char *fr
|
|||||||
static void sasl_fail (IRC_SERVER_REC *server, const char *data, const char *from)
|
static void sasl_fail (IRC_SERVER_REC *server, const char *data, const char *from)
|
||||||
{
|
{
|
||||||
/* Stop any pending timeout, if any */
|
/* Stop any pending timeout, if any */
|
||||||
if (server->sasl_timeout != -1) {
|
if (server->sasl_timeout != -1) {
|
||||||
g_source_remove(server->sasl_timeout);
|
g_source_remove(server->sasl_timeout);
|
||||||
server->sasl_timeout = -1;
|
server->sasl_timeout = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_critical("Authentication failed, make sure your credentials are correct and that the mechanism "
|
g_critical("Authentication failed, make sure your credentials are correct and that the mechanism "
|
||||||
"you have selected is supported by this server.");
|
"you have selected is supported by this server.");
|
||||||
@ -56,10 +56,10 @@ static void sasl_fail (IRC_SERVER_REC *server, const char *data, const char *fro
|
|||||||
|
|
||||||
static void sasl_already (IRC_SERVER_REC *server, const char *data, const char *from)
|
static void sasl_already (IRC_SERVER_REC *server, const char *data, const char *from)
|
||||||
{
|
{
|
||||||
if (server->sasl_timeout != -1) {
|
if (server->sasl_timeout != -1) {
|
||||||
g_source_remove(server->sasl_timeout);
|
g_source_remove(server->sasl_timeout);
|
||||||
server->sasl_timeout = -1;
|
server->sasl_timeout = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We're already authenticated, do nothing */
|
/* We're already authenticated, do nothing */
|
||||||
cap_finish_negotiation(server);
|
cap_finish_negotiation(server);
|
||||||
@ -67,10 +67,10 @@ static void sasl_already (IRC_SERVER_REC *server, const char *data, const char *
|
|||||||
|
|
||||||
static void sasl_success (IRC_SERVER_REC *server, const char *data, const char *from)
|
static void sasl_success (IRC_SERVER_REC *server, const char *data, const char *from)
|
||||||
{
|
{
|
||||||
if (server->sasl_timeout != -1) {
|
if (server->sasl_timeout != -1) {
|
||||||
g_source_remove(server->sasl_timeout);
|
g_source_remove(server->sasl_timeout);
|
||||||
server->sasl_timeout = -1;
|
server->sasl_timeout = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The authentication succeeded, time to finish the CAP negotiation */
|
/* The authentication succeeded, time to finish the CAP negotiation */
|
||||||
g_warning("SASL authentication succeeded");
|
g_warning("SASL authentication succeeded");
|
||||||
@ -86,10 +86,10 @@ static void sasl_step (IRC_SERVER_REC *server, const char *data, const char *fro
|
|||||||
conn = server->connrec;
|
conn = server->connrec;
|
||||||
|
|
||||||
/* Stop the timer */
|
/* Stop the timer */
|
||||||
if (server->sasl_timeout != -1) {
|
if (server->sasl_timeout != -1) {
|
||||||
g_source_remove(server->sasl_timeout);
|
g_source_remove(server->sasl_timeout);
|
||||||
server->sasl_timeout = -1;
|
server->sasl_timeout = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (conn->sasl_mechanism) {
|
switch (conn->sasl_mechanism) {
|
||||||
case SASL_MECHANISM_PLAIN:
|
case SASL_MECHANISM_PLAIN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user