--- commands.c.ts	Sun Feb 29 21:32:29 2004
+++ commands.c	Sun Feb 29 21:53:06 2004
@@ -5187,7 +5187,7 @@
 
 		if (l < 2)
 			return 3;
-		if (!strcmp(args+l-2, "TS"))
+		if (strstr(args, "TS"))
 			pptr->c_flags |= CLIENT_FLAGS_DOESTS;
 	}
 	return 3;

