Comparison

plugins/mod_admin_telnet.lua @ 4517:2e274e088ddc

mod_admin_telnet: Add flag for IPv6
author Kim Alvefur <zash@zash.se>
date Mon, 05 Mar 2012 22:11:29 +0100
parent 4516:24bb3994df7a
child 4684:dc70c4ffb66d
comparison
equal deleted inserted replaced
4516:24bb3994df7a 4517:2e274e088ddc
497 line[#line+1] = "(compressed)"; 497 line[#line+1] = "(compressed)";
498 end 498 end
499 if session.smacks then 499 if session.smacks then
500 line[#line+1] = "(sm)"; 500 line[#line+1] = "(sm)";
501 end 501 end
502 if session.conn and session.conn:ip():match(":") then
503 line[#line+1] = "(IPv6)";
504 end
502 return table.concat(line, " "); 505 return table.concat(line, " ");
503 end 506 end
504 507
505 def_env.s2s = {}; 508 def_env.s2s = {};
506 function def_env.s2s:show(match_jid) 509 function def_env.s2s:show(match_jid)