Revision: 855
http://svn.sourceforge.net/phpfreechat/?rev=855&view=rev
Author: kerphi
Date: 2006-10-31 12:50:47 -0800 (Tue, 31 Oct 2006)
Log Message:
-----------
[en] Add the nickname near the nickid in the /banlist result [20min]
[fr] Ajout du pseudonyme ?\195?\160 cot?\195?\169 de l'id du pseudo dans le r?\195?\169sultat de la commande /banlist [20min]
Modified Paths:
--------------
trunk/src/commands/banlist.class.php
Modified: trunk/src/commands/banlist.class.php
===================================================================
--- trunk/src/commands/banlist.class.php 2006-10-31 20:30:36 UTC (rev 854)
+++ trunk/src/commands/banlist.class.php 2006-10-31 20:50:47 UTC (rev 855)
@@ -16,8 +16,8 @@
$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 = "";
@@ -25,7 +25,11 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|