translate && del Redundant codes && some new var

This commit is contained in:
Denny Dai
2015-05-30 01:30:08 +08:00
parent 75c23b86e9
commit 2347defd47
10 changed files with 18 additions and 100 deletions
-7
View File
@@ -10,11 +10,4 @@ function escapePeer($peer){
function PluginList($commands, $name){
global $plugins;
$plugins[] .= TAG.$commands." ".$name;
}
function init_bot($var){
global $BOT;
require('classes/'.$var.'/Base.php');
$classname = 'DBot\\'.$var.'\Base';
$BOT = new $classname('unix:///tmp/'.$var.'.sck');
}