summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-12-27 09:20:39 -0500
committerTingPing <tingping@tingping.se>2013-12-27 09:20:39 -0500
commit61ceaef57e19f7b19669bca4f7972123d2e6b119 (patch)
tree63cef0b5ded51aa656cf77fc6b96468dc6342ab2 /src/common/inbound.c
parentafb6685593a525a5619bc270b065d5c24a75267d (diff)
Properly request server-time when it's the only cap
Closes #862
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index 8d51df94..1ea0a412 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -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 */