X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_admin_telnet.lua;h=4f11d8eacebb5b08f5bdc547c06ccb94be12e1e0;hb=873005c41b407731d759be423c51cb251346c0ae;hp=bb5a13c37531b00b4e4a877e4800bf2a19c1f8a5;hpb=b564225035d20ba51ceff9f628635f42a4d68d98;p=prosody.git diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index bb5a13c3..4f11d8ea 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -594,11 +594,11 @@ local function show_c2s(callback) 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); @@ -1188,7 +1188,7 @@ function printbanner(session) if option == "short" or option == "full" then session.print("Welcome to the Prosody administration console. For a list of commands, type: help"); session.print("You may find more help on using this console in our online documentation at "); - session.print("http://prosody.im/doc/console\n"); + session.print("https://prosody.im/doc/console\n"); end if option ~= "short" and option ~= "full" and option ~= "graphic" then session.print(option);