예제 #1
0
 public function load()
 {
     $server_name = Mootyconf::get_values('deerkins::servers');
     $this->main->server_config_prefix = 'deerkins::servers::' . $server_name;
     $this->server_config_prefix = 'deerkins::servers::' . $server_name;
     $this->info = array('name' => $server_name, 'address' => Mootyconf::get_value($this->server_config_prefix . '::address'), 'port' => Mootyconf::get_value($this->server_config_prefix . '::port'), 'pass' => Mootyconf::get_value($this->server_config_prefix . '::pass'), 'channels' => Mootyconf::get_values($this->server_config_prefix . '::channels'), 'reconnect' => Mootyconf::get_value($this->server_config_prefix . '::reconnect'), 'ident' => Mootyconf::get_value('deerkins::ident'), 'realname' => Mootyconf::get_value('deerkins::realname'));
 }
예제 #2
0
파일: admin.php 프로젝트: unnes/deerkins
 function install()
 {
     parent::install();
     $admins = Mootyconf::get_values($this->pluginspace . '::admins');
     foreach ($admins as $a => $admin) {
         if ($admin == '') {
             continue;
         }
         $this->admins[] = array('nick' => $admin, 'host' => Mootyconf::get_value('plugin::' . $this->module . '::' . $admin . '::host'), 'password' => Mootyconf::get_value('plugin::' . $this->module . '::' . $admin . '::password'));
     }
 }
예제 #3
0
 public function install()
 {
     $triggers = Mootyconf::get_values($this->pluginspace . '::active');
     foreach ($triggers as $a => $trigger) {
         $this->register_trigger($trigger, Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::type'), Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::description'), Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::message'), Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::args'), Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::exec'));
         if (Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::hide') == '' && (Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::type') == 'PRIVMSG' || Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::type') == 'action')) {
             $this->help_triggers[] = array('trigger' => $trigger, 'description' => Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::description'));
         }
         $this->triggers[] = array('trigger' => $trigger, 'type' => Mootyconf::get_value('plugin::' . $this->module . '::' . $trigger . '::type'));
     }
     $this->log('installed');
 }
예제 #4
0
파일: deerme.php 프로젝트: unnes/deerkins
 function install()
 {
     parent::install();
     $this->deer_timeout = Mootyconf::get_value($this->pluginspace . '::timeout');
     $this->timeout_punish = Mootyconf::get_value($this->pluginspace . '::timeout_punish');
     $this->deeritor = Mootyconf::get_value('plugin::deerme::deeritor');
     $this->banlist = array('nick' => Mootyconf::get_values('plugin::deerme::ignore_nick'), 'host' => Mootyconf::get_values('plugin::deerme::ignore_host'), 'channel' => Mootyconf::get_values('plugin::deerme::ignore_channel'));
     $this->privileged_match = Mootyconf::get_values('plugin::deerme::privileged_match');
     $privileged = Mootyconf::get_values($this->pluginspace . '::privileged');
     foreach ($privileged as $a => $user) {
         $this->deer_privileged[] = array('nick' => $user, 'host' => Mootyconf::get_value('plugin::' . $this->module . '::' . $user . '::host'), 'timeout' => Mootyconf::get_value('plugin::' . $this->module . '::' . $user . '::timeout'));
     }
 }
예제 #5
0
 function load()
 {
     $this->main->log('Loading modules.', __CLASS__);
     require_once CORE_PATH . 'ircine.module.template.php';
     $modules = Mootyconf::get_values($this->main->server_config_prefix . '::plugins');
     foreach ($modules as $k => $module) {
         if ($this->import($module)) {
             if ($this->is_loaded($module)) {
                 unset($this->modules[$module]);
             }
             $ucmodule = ucfirst($module);
             $this->modules[$module] =& new $ucmodule($this->main);
             //$this->modules[$module]->install ( );
             $this->main->log('installed module: ' . $ucmodule, __CLASS__);
             if (!in_array($module, $this->loaded_modules)) {
                 $this->loaded_modules[] = $module;
             }
         }
     }
     return true;
 }
예제 #6
0
파일: ctcp.php 프로젝트: unnes/deerkins
 function install()
 {
     parent::install();
     $this->banned_channels = Mootyconf::get_values($this->main->server_config_prefix . '::banned_channels');
 }