Software /
code /
prosody
Comparison
plugins/mod_console.lua @ 1341:53decd1ee351
mod_console: Fix syntax error
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 12 Jun 2009 15:42:43 +0100 |
parent | 1340:f707d0957155 |
child | 1342:947d94e3619f |
comparison
equal
deleted
inserted
replaced
1340:f707d0957155 | 1341:53decd1ee351 |
---|---|
416 if count == 0 then | 416 if count == 0 then |
417 print("No incoming connections from "..from.." to "..to); | 417 print("No incoming connections from "..from.." to "..to); |
418 else | 418 else |
419 print("Closed "..count.." incoming session"..((count == 1 and "") or "s").." from "..from.." to "..to); | 419 print("Closed "..count.." incoming session"..((count == 1 and "") or "s").." from "..from.." to "..to); |
420 end | 420 end |
421 elseif hosts[to] and hosts[from] | 421 elseif hosts[to] and hosts[from] then |
422 return false, "Both of the hostnames you specified are local, there are no s2s sessions to close"; | 422 return false, "Both of the hostnames you specified are local, there are no s2s sessions to close"; |
423 else | 423 else |
424 return false, "Neither of the hostnames you specified are being used on this server"; | 424 return false, "Neither of the hostnames you specified are being used on this server"; |
425 end | 425 end |
426 | 426 |