Example #1
0
 public function modload()
 {
     modules::init_module('os_stats', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'default');
     // these are standard in module constructors
     operserv::add_help('os_stats', 'help', &operserv::$help->OS_HELP_STATS_1);
     operserv::add_help('os_stats', 'help stats', &operserv::$help->OS_HELP_STATS_ALL);
     // add the help
     operserv::add_command('stats', 'os_stats', 'stats_command');
     // add the stats command
 }
Example #2
0
 public function modload()
 {
     modules::init_module('os_ignore', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'default');
     // these are standard in module constructors
     operserv::add_help('os_ignore', 'help', &operserv::$help->OS_HELP_IGNORE_1);
     operserv::add_help('os_ignore', 'help ignore', &operserv::$help->OS_HELP_IGNORE_ALL);
     // add the help
     operserv::add_command('ignore', 'os_ignore', 'ignore_command');
     // add the ignore command
 }
Example #3
0
 public function modload()
 {
     modules::init_module('os_chanclear', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'default');
     // these are standard in module constructors
     operserv::add_help('os_chanclear', 'help', &operserv::$help->OS_HELP_CHANCLEAR_1);
     operserv::add_help('os_chanclear', 'help chanclear', &operserv::$help->OS_HELP_CHANCLEAR_ALL);
     // add the help
     operserv::add_command('chanclear', 'os_chanclear', 'chanclear_command');
     // add the command
 }
Example #4
0
 public function modload()
 {
     modules::init_module('os_rehash', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'static');
     // these are standard in module constructors
     operserv::add_help('os_rehash', 'help', &operserv::$help->OS_HELP_REHASH_1);
     operserv::add_help('os_rehash', 'help rehash', &operserv::$help->OS_HELP_REHASH_ALL);
     // add the help
     operserv::add_command('rehash', 'os_rehash', 'rehash_command');
     // add the commands
 }
Example #5
0
 public function modload()
 {
     modules::init_module('os_vhost', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'static');
     // these are standard in module constructors
     operserv::add_help('os_vhost', 'help', &operserv::$help->OS_HELP_VHOST_1);
     operserv::add_help('os_vhost', 'help vhost', &operserv::$help->OS_HELP_VHOST_ALL);
     // add the help
     operserv::add_command('vhost', 'os_vhost', 'vhost_command');
     // add the vhost command
 }
Example #6
0
 public function main(&$ircdata, $startup = false)
 {
     if (ircd::on_msg(&$ircdata, core::$config->operserv->nick)) {
         $nick = core::get_nick(&$ircdata, 0);
         $query = substr(core::get_data_after(&$ircdata, 3), 1);
         // convert to lower case because all the tingy wags are in lowercase
         $query = strtolower($query);
         if (core::$nicks[$nick]['ircop'] && services::user_exists($nick, true, array('display', 'identified') !== false)) {
             operserv::get_help($nick, $query);
         }
     }
     // only hook to the privmsg towards OperServ
 }
Example #7
0
 public function modload()
 {
     modules::init_module('os_shutdown', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'static');
     // these are standard in module constructors
     operserv::add_help('os_shutdown', 'help', &operserv::$help->OS_HELP_SHUTDOWN_1);
     operserv::add_help('os_shutdown', 'help shutdown', &operserv::$help->OS_HELP_SHUTDOWN_ALL);
     // add the help
     operserv::add_command('shutdown', 'os_shutdown', 'shutdown_command');
     // add the shutdown command
     operserv::add_help('os_shutdown', 'help', &operserv::$help->OS_HELP_RESTART_1);
     operserv::add_help('os_shutdown', 'help restart', &operserv::$help->OS_HELP_RESTART_ALL);
     // add the help
     operserv::add_command('restart', 'os_shutdown', 'restart_command');
     // add the command
 }
Example #8
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
 }
Example #9
0
 public function modload()
 {
     modules::init_module('os_module', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'static');
     // these are standard in module constructors
     operserv::add_help('os_module', 'help', &operserv::$help->OS_HELP_MODULES_1);
     operserv::add_help('os_module', 'help', &operserv::$help->OS_HELP_MODLOAD_1);
     operserv::add_help('os_module', 'help', &operserv::$help->OS_HELP_MODUNLOAD_1);
     operserv::add_help('os_module', 'help modlist', &operserv::$help->OS_HELP_MODLIST_ALL);
     operserv::add_help('os_module', 'help modload', &operserv::$help->OS_HELP_MODLOAD_ALL);
     operserv::add_help('os_module', 'help modunload', &operserv::$help->OS_HELP_MODUNLOAD_ALL);
     // add the help
     operserv::add_command('modlist', 'os_module', 'modlist_command');
     operserv::add_command('modload', 'os_module', 'modload_command');
     operserv::add_command('modunload', 'os_module', 'modunload_command');
     // add the commands
 }
Example #10
0
 public function modload()
 {
     modules::init_module('os_utilities', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'static');
     // these are standard in module constructors
     operserv::add_help('os_utilities', 'help', &operserv::$help->OS_HELP_JUPE_1);
     operserv::add_help('os_utilities', 'help jupe', &operserv::$help->OS_HELP_JUPE_ALL);
     operserv::add_help('os_utilities', 'help', &operserv::$help->OS_HELP_MODE_1);
     operserv::add_help('os_utilities', 'help mode', &operserv::$help->OS_HELP_MODE_ALL);
     operserv::add_help('os_utilities', 'help', &operserv::$help->OS_HELP_KICK_1);
     operserv::add_help('os_utilities', 'help kick', &operserv::$help->OS_HELP_KICK_ALL);
     // add the help
     operserv::add_command('jupe', 'os_utilities', 'jupe_command');
     operserv::add_command('mode', 'os_utilities', 'mode_command');
     operserv::add_command('kick', 'os_utilities', 'kick_command');
     // add the commands
 }