Properly request server-time when it's the only cap

Closes #862
This commit is contained in:
TingPing 2013-12-27 09:20:39 -05:00
parent afb6685593
commit 61ceaef57e
1 changed files with 3 additions and 0 deletions

View File

@ -1707,15 +1707,18 @@ inbound_cap_ls (server *serv, char *nick, char *extensions_str,
if (!strcmp (extension, "znc.in/server-time-iso"))
{
strcat (buffer, "znc.in/server-time-iso ");
want_cap = 1;
}
if (!strcmp (extension, "znc.in/server-time"))
{
strcat (buffer, "znc.in/server-time ");
want_cap = 1;
}
if (prefs.hex_irc_cap_server_time
&& !strcmp (extension, "server-time"))
{
strcat (buffer, "server-time ");
want_cap = 1;
}
/* if the SASL password is set AND auth mode is set to SASL, request SASL auth */