Comparison

plugins/mod_admin_telnet.lua @ 5028:10a69a7e4545

mod_admin_telnet: Remove unused variable
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Jul 2012 01:24:48 +0100
parent 5027:8394fe8a32e8
child 5029:7bcd79631492
comparison
equal deleted inserted replaced
5027:8394fe8a32e8 5028:10a69a7e4545
517 end); 517 end);
518 return true, "Total: "..count.." secure client connections"; 518 return true, "Total: "..count.." secure client connections";
519 end 519 end
520 520
521 function def_env.c2s:close(match_jid) 521 function def_env.c2s:close(match_jid)
522 local print, count = self.session.print, 0; 522 local count = 0;
523 show_c2s(function (jid, session) 523 show_c2s(function (jid, session)
524 if jid == match_jid or jid_bare(jid) == match_jid then 524 if jid == match_jid or jid_bare(jid) == match_jid then
525 count = count + 1; 525 count = count + 1;
526 session:close(); 526 session:close();
527 end 527 end