Diff

plugins/mod_admin_telnet.lua @ 7091:1c3b38f80571

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Fri, 22 Jan 2016 13:22:50 +0000
parent 7074:3ff83773ffc0
parent 7090:7aa37d70944b
child 7359:a5a080c12c96
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Wed Jan 20 15:04:42 2016 +0100
+++ b/plugins/mod_admin_telnet.lua	Fri Jan 22 13:22:50 2016 +0000
@@ -594,11 +594,11 @@
 	c2s:sort(function(a, b)
 		if a.host == b.host then
 			if a.username == b.username then
-				return a.resource or "" > b.resource or "";
+				return (a.resource or "") > (b.resource or "");
 			end
-			return a.username or "" > b.username or "";
+			return (a.username or "") > (b.username or "");
 		end
-		return a.host or "" > b.host or "";
+		return (a.host or "") > (b.host or "");
 	end):map(function (session)
 		callback(get_jid(session), session)
 	end);