Skip to content

Commit

Permalink
[en] Add the nickname near the nickid in the /banlist result [20min]
Browse files Browse the repository at this point in the history
[fr] Ajout du pseudonyme à coté de l'id du pseudo dans le résultat de la commande /banlist [20min]


git-svn-id: https://phpfreechat.svn.sourceforge.net/svnroot/phpfreechat/trunk@855 2772adf2-ac07-0410-9d30-e29d8120292e
  • Loading branch information
kerphi committed Oct 31, 2006
1 parent 0b1bd72 commit 71bf7d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/commands/banlist.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,20 @@ function run(&$xml_reponse, $p)
$c =& $this->c;
$u =& $this->u;

$container =& $c->getContainerInstance();
$banlist = $container->getChanMeta($p["recipient"], 'banlist_nickid');
$ct =& $c->getContainerInstance();
$banlist = $ct->getChanMeta($p["recipient"], 'banlist_nickid');

if ($banlist == NULL) $banlist = array(); else $banlist = unserialize($banlist);
$msg = "";
$msg .= "<p>"._pfc("The banished user's id list is:")."</p>";
if (count($banlist)>0)
{
$msg .= "<ul>";
foreach($banlist as $b) $msg .= "<li style=\"margin-left:50px\">".$b."</li>";
foreach($banlist as $b)
{
$n = $ct->getNickname($b);
$msg .= "<li style=\"margin-left:50px\">".$b." (".$n.")</li>";
}
$msg .= "</ul>";
}
else
Expand Down

0 comments on commit 71bf7d9

Please sign in to comment.