summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-06-28 13:33:08 -0400
committerTingPing <tngpng@gmail.com>2013-06-28 13:33:08 -0400
commit00e15828a138bd046aaef1b78afe4b061ac0e492 (patch)
treebd25308bfde16ff4d46bd3d2c8bea42e9de97657 /src/common/inbound.c
parentad926e9b07f499bfb70b57890475c73f9d64812a (diff)
Also support znc.in/server-time-iso
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index 2645c438..1fa53cca 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -1661,8 +1661,12 @@ inbound_cap_ls (server *serv, char *nick, char *extensions_str,
 		}
 
 		/* bouncers can prefix a name space to the extension so we should use.
-		 * znc uses "znc.in/server-time".
+		 * znc <= 1.0 uses "znc.in/server-time" and newer use "znc.in/server-time-iso".
 		 */
+		if (!strcmp (extension, "znc.in/server-time-iso"))
+		{
+			strcat (buffer, "znc.in/server-time-iso ");
+		}
 		if (!strcmp (extension, "znc.in/server-time"))
 		{
 			strcat (buffer, "znc.in/server-time ");