*/ class pfcCommand_banlist extends pfcCommand { var $desc = "This command list the banished users on the given channel"; function run(&$xml_reponse, $p) { $c =& pfcGlobalConfig::Instance(); $u =& pfcUserConfig::Instance(); $ct =& pfcContainer::Instance(); $banlist = $ct->getChanMeta($p["recipient"], 'banlist_nickid'); if ($banlist == NULL) $banlist = array(); else $banlist = unserialize($banlist); $msg = ""; $msg .= "
"._pfc("The banished user list is:")."
"; if (count($banlist)>0) { $msg .= "("._pfc("Empty").")
"; } $msg .= ""._pfc("'/unban {nickname}' will unban the user identified by {nickname}")."
"; $msg .= ""._pfc("'/unban all' will unban all the users on this channel")."
"; $xml_reponse->script("pfc.handleResponse('".$this->name."', 'ok', '".addslashes($msg)."');"); } } ?>