Exemplo n.º 1
0
 public function modload()
 {
     if (isset(core::$config->global)) {
         ircd::introduce_client(core::$config->global->nick, core::$config->global->user, core::$config->global->host, core::$config->global->real);
     }
     // i decided to change global from a core feature into a module based feature
     // seen as though global won't do anything really without this module it's going here
     modules::init_module('os_global', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'static');
     // these are standard in module constructors
     operserv::add_help('os_global', 'help', &operserv::$help->OS_HELP_GLOBAL_1);
     operserv::add_help('os_global', 'help global', &operserv::$help->OS_HELP_GLOBAL_ALL);
     // add the help
     operserv::add_command('global', 'os_global', 'global_command');
     // add the command
 }
Exemplo n.º 2
0
 public function __construct()
 {
     require BASEPATH . '/lang/' . core::$config->server->lang . '/nickserv.php';
     self::$help =& $help;
     if (isset(core::$config->nickserv)) {
         ircd::introduce_client(core::$config->nickserv->nick, core::$config->nickserv->user, core::$config->nickserv->host, core::$config->nickserv->real);
     } else {
         return;
     }
     // connect the bot
     foreach (core::$config->nickserv_modules as $id => $module) {
         modules::load_module('ns_' . $module, $module . '.ns.php');
     }
     // load the nickserv modules
     timer::add(array('nickserv', 'check_expire', array()), 300, 0);
     // set a timer!
 }
Exemplo n.º 3
0
 public function __construct()
 {
     require BASEPATH . '/lang/' . core::$config->server->lang . '/operserv.php';
     self::$help =& $help;
     // load the help file
     if (isset(core::$config->operserv)) {
         ircd::introduce_client(core::$config->operserv->nick, core::$config->operserv->user, core::$config->operserv->host, core::$config->operserv->real);
     } else {
         return;
     }
     // connect the bot
     foreach (core::$config->operserv_modules as $id => $module) {
         modules::load_module('os_' . $module, $module . '.os.php');
     }
     // load the operserv modules
     if (core::$config->operserv->override) {
         self::add_help('operserv', 'help', &self::$help->OS_HELP_OVERRIDE_1);
         self::add_help('operserv', 'help override', &self::$help->OS_HELP_OVERRIDE_ALL);
         // add the help
         self::add_command('override', 'operserv', 'override_command');
         // add the override command
     }
     // if override is set to true
 }
Exemplo n.º 4
0
 public function introduce_callback($nick)
 {
     ircd::introduce_client($nick, 'enforcer', core::$config->server->name, $nick, true);
     self::$held_nicks[$nick] = core::$network_time;
     // introduce the client, set us as a held nick
     timer::add(array('ns_recover', 'remove_callback', array($nick)), self::$expiry_time, 1);
     // add a timer.
 }