Exemple #1
0
 public function modload()
 {
     modules::init_module('cs_levels', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
     // these are standard in module constructors
     chanserv::add_help('cs_levels', 'help', &chanserv::$help->CS_HELP_LEVELS_1);
     // add the help
     if (ircd::$halfop) {
         chanserv::add_help('cs_levels', 'help levels', &chanserv::$help->CS_HELP_LEVELS_ALL);
     } else {
         chanserv::add_help('cs_levels', 'help levels', &chanserv::$help->CS_HELP_LEVELS_ALL2);
     }
     // if we have halfop enabled the help we add is different.
     chanserv::add_command('levels', 'cs_levels', 'levels_command');
     // add the command
     self::$flags = '+-kvhoaqsrftFb';
     // string of valid flags
     if (!ircd::$halfop) {
         self::$flags = str_replace('h', '', self::$flags);
     }
     // if halfop isnt enabled, remove h and H
     if (!ircd::$protect) {
         self::$flags = str_replace('a', '', self::$flags);
     }
     // same for protect
     if (!ircd::$owner) {
         self::$flags = str_replace('q', '', self::$flags);
     }
     // and finally, owner
 }
Exemple #2
0
 public function modload()
 {
     modules::init_module('ns_help', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'static');
     // these are standard in module constructors
     nickserv::add_help_fix('ns_help', 'prefix', 'help', &nickserv::$help->NS_HELP_PREFIX);
     nickserv::add_help_fix('ns_help', 'suffix', 'help', &nickserv::$help->NS_HELP_SUFFIX);
     // add teh help docs
 }
Exemple #3
0
 public function modload()
 {
     modules::init_module('ns_ghost', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
     // these are standard in module constructors
     nickserv::add_help('ns_ghost', 'help', &nickserv::$help->NS_HELP_GHOST_1);
     nickserv::add_help('ns_ghost', 'help ghost', &nickserv::$help->NS_HELP_GHOST_ALL);
     // add the help
     nickserv::add_command('ghost', 'ns_ghost', 'ghost_command');
     // add the ghost command
 }
 public function modload()
 {
     modules::init_module('cs_register', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
     // these are standard in module constructors
     chanserv::add_help('cs_register', 'help', &chanserv::$help->CS_HELP_REGISTER_1);
     chanserv::add_help('cs_register', 'help register', &chanserv::$help->CS_HELP_REGISTER_ALL);
     // add the help
     chanserv::add_command('register', 'cs_register', 'register_command');
     // add the command
 }
Exemple #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
 }
Exemple #6
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
 }
Exemple #7
0
 public function modload()
 {
     modules::init_module('cs_topic', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
     // these are standard in module constructors
     chanserv::add_help('cs_topic', 'help commands', &chanserv::$help->CS_HELP_TOPIC_1);
     chanserv::add_help('cs_topic', 'help topic', &chanserv::$help->CS_HELP_TOPIC_ALL);
     // add the help
     chanserv::add_command('topic', 'cs_topic', 'topic_command');
     // add the commands
 }
Exemple #8
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
 }
 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
 }
Exemple #10
0
 public function modload()
 {
     modules::init_module('ns_info', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
     // these are standard in module constructors
     nickserv::add_help('ns_info', 'help', &nickserv::$help->NS_HELP_INFO_1);
     nickserv::add_help('ns_info', 'help info', &nickserv::$help->NS_HELP_INFO_ALL);
     // add the help
     nickserv::add_command('info', 'ns_info', 'info_command');
     // add the info command
 }
Exemple #11
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
 }
Exemple #12
0
 public function modload()
 {
     modules::init_module('cs_list', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
     // these are standard in module constructors
     chanserv::add_help('cs_list', 'help', &chanserv::$help->CS_HELP_LIST_1, true);
     chanserv::add_help('cs_list', 'help list', &chanserv::$help->CS_HELP_LIST_ALL, true);
     // add the help
     chanserv::add_command('list', 'cs_list', 'list_command');
     // add the list command
 }
Exemple #13
0
 public function modload()
 {
     modules::init_module('cs_drop', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
     // these are standard in module constructors
     chanserv::add_help('cs_drop', 'help', &chanserv::$help->CS_HELP_DROP_1);
     chanserv::add_help('cs_drop', 'help drop', &chanserv::$help->CS_HELP_DROP_ALL);
     // add the help
     chanserv::add_command('drop', 'cs_drop', 'drop_command');
     // add the drop command
 }
 public function modload()
 {
     modules::init_module('ns_identify', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
     // these are standard in module constructors
     nickserv::add_help('ns_identify', 'help', &nickserv::$help->NS_HELP_IDENTIFY_1);
     nickserv::add_help('ns_identify', 'help identify', &nickserv::$help->NS_HELP_IDENTIFY_ALL);
     // add the help
     nickserv::add_command('identify', 'ns_identify', 'identify_command');
     // add the command
     nickserv::add_help('ns_identify', 'help id', &nickserv::$help->NS_HELP_IDENTIFY_ALL);
     nickserv::add_command('id', 'ns_identify', 'identify_command');
     // "id" alias, help and command
 }
 public function modload()
 {
     modules::init_module('ns_password', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
     // these are standard in module constructors
     nickserv::add_help('ns_password', 'help', &nickserv::$help->NS_HELP_PASSWORD_1);
     nickserv::add_help('ns_password', 'help password', &nickserv::$help->NS_HELP_PASSWORD_ALL);
     nickserv::add_help('ns_password', 'help', &nickserv::$help->NS_HELP_SAPASS_1, true);
     nickserv::add_help('ns_password', 'help sapass', &nickserv::$help->NS_HELP_SAPASS_ALL, true);
     // add the help docs
     nickserv::add_command('password', 'ns_password', 'password_command');
     nickserv::add_command('sapass', 'ns_password', 'sapass_command');
     // add the password command
 }
Exemple #16
0
 public function modload()
 {
     modules::init_module('ns_suspend', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
     // these are standard in module constructors
     nickserv::add_help('ns_suspend', 'help', &nickserv::$help->NS_HELP_SUSPEND_1, true);
     nickserv::add_help('ns_suspend', 'help', &nickserv::$help->NS_HELP_UNSUSPEND_1, true);
     nickserv::add_help('ns_suspend', 'help suspend', &nickserv::$help->NS_HELP_SUSPEND_ALL, true);
     nickserv::add_help('ns_suspend', 'help unsuspend', &nickserv::$help->NS_HELP_UNSUSPEND_ALL, true);
     // add the help
     nickserv::add_command('suspend', 'ns_suspend', 'suspend_command');
     nickserv::add_command('unsuspend', 'ns_suspend', 'unsuspend_command');
     // add the commands
 }
Exemple #17
0
 public function modload()
 {
     modules::init_module('cs_flags', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
     // these are standard in module constructors
     chanserv::add_help('cs_flags', 'help', &chanserv::$help->CS_HELP_FLAGS_1);
     chanserv::add_help('cs_flags', 'help flags', &chanserv::$help->CS_HELP_FLAGS_ALL);
     // add the help
     chanserv::add_command('flags', 'cs_flags', 'flags_command');
     // add the command
     self::$flags = '+-duewmtSFGTKLI';
     self::$p_flags = 'duewmt';
     // flags WITH parameters
 }
Exemple #18
0
 public function modload()
 {
     modules::init_module('ns_recover', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
     // these are standard in module constructors
     nickserv::add_help('ns_recover', 'help', &nickserv::$help->NS_HELP_RECOVER_1);
     nickserv::add_help('ns_recover', 'help recover', &nickserv::$help->NS_HELP_RECOVER_ALL);
     nickserv::add_help('ns_recover', 'help', &nickserv::$help->NS_HELP_RELEASE_1);
     nickserv::add_help('ns_recover', 'help release', &nickserv::$help->NS_HELP_RELEASE_ALL);
     // add the help
     nickserv::add_command('recover', 'ns_recover', 'recover_command');
     nickserv::add_command('release', 'ns_recover', 'release_command');
     // add the commands
     self::$expiry_time = 60;
 }
 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
 }
Exemple #20
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
 }
 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
 }
Exemple #22
0
 public function modload()
 {
     modules::init_module('ns_flags', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
     // these are standard in module constructors
     nickserv::add_help('ns_flags', 'help', &nickserv::$help->NS_HELP_FLAGS_1);
     nickserv::add_help('ns_flags', 'help flags', &nickserv::$help->NS_HELP_FLAGS_ALL);
     nickserv::add_help('ns_flags', 'help', &nickserv::$help->NS_HELP_SAFLAGS_1, true);
     nickserv::add_help('ns_flags', 'help saflags', &nickserv::$help->NS_HELP_SAFLAGS_ALL, true);
     // add the help
     nickserv::add_command('flags', 'ns_flags', 'flags_command');
     nickserv::add_command('saflags', 'ns_flags', 'saflags_command');
     // add the command
     self::$flags = '+-eumSP';
     self::$p_flags = 'eum';
     // flags WITH parameters
 }
Exemple #23
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
 }
 public function modload()
 {
     modules::init_module('ns_register', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
     // these are standard in module constructors
     nickserv::add_help('ns_register', 'help', &nickserv::$help->NS_HELP_REGISTER_1);
     nickserv::add_help('ns_register', 'help register', &nickserv::$help->NS_HELP_REGISTER_ALL);
     if (core::$config->nickserv->force_validation) {
         nickserv::add_help('ns_register', 'help', &nickserv::$help->NS_HELP_CONFIRM_1);
         nickserv::add_help('ns_register', 'help confirm', &nickserv::$help->NS_HELP_CONFIRM_ALL);
     }
     // add the help
     nickserv::add_command('register', 'ns_register', 'register_command');
     if (core::$config->nickserv->force_validation) {
         nickserv::add_command('confirm', 'ns_register', 'confirm_command');
     }
     // add the commands
 }
Exemple #25
0
 public function __construct()
 {
     modules::init_module('mysql_driver', self::MOD_VERSION, self::MOD_AUTHOR, 'driver', 'static');
     // these are standard in module constructors
     if (!(self::$link = @mysql_connect(core::$config->database->server, core::$config->database->user, core::$config->database->pass))) {
         core::alog('database(): failed to connect to ' . core::$config->database->server . ' ' . core::$config->database->user . ':' . core::$config->database->pass, 'BASIC');
         core::save_logs();
         // force a log save
     }
     // can we connect to sql?
     if (!@mysql_select_db(core::$config->database->name, self::$link)) {
         core::alog('database(): failed to select database ' . core::$config->database->name, 'BASIC');
         core::save_logs();
         // force a log save
     }
     // can we select the database?
     core::alog('database(): connection to database sucessful', 'BASIC');
     // log the sucessful connection
     if (core::$config->database->optimize) {
         timer::add(array('database', 'optimize', array()), 86399, 0);
     }
     // add a timer to optimize the db every day.
 }
Exemple #26
0
 public function modload()
 {
     modules::init_module('cs_fantasy', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
     // these are standard in module constructors
 }
Exemple #27
0
 public function __construct()
 {
     modules::init_module('inspircd11', self::MOD_VERSION, self::MOD_AUTHOR, 'protocol', 'static');
     // these are standard in module constructors
 }
 public function modload()
 {
     modules::init_module('cs_xcommands', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
     // these are standard in module constructors
     chanserv::add_help_fix('cs_xcommands', 'prefix', 'help commands', &chanserv::$help->CS_XCOMMANDS_PREFIX);
     chanserv::add_help_fix('cs_xcommands', 'suffix', 'help commands', &chanserv::$help->CS_XCOMMANDS_SUFFIX);
     chanserv::add_help('cs_xcommands', 'help', &chanserv::$help->CS_HELP_XCOMMANDS_1);
     chanserv::add_help('cs_xcommands', 'help', &chanserv::$help->CS_HELP_CLEAR_1);
     // clear command
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_KICK_1);
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_KICKBAN_1);
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_BAN_1);
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_UNBAN_1);
     // add them to the "help commands" category
     chanserv::add_help('cs_xcommands', 'help clear', &chanserv::$help->CS_HELP_CLEAR_ALL);
     // clear command
     chanserv::add_help('cs_xcommands', 'help kick', &chanserv::$help->CS_HELP_KICK_ALL);
     chanserv::add_help('cs_xcommands', 'help kickban', &chanserv::$help->CS_HELP_KICK_ALL);
     chanserv::add_help('cs_xcommands', 'help ban', &chanserv::$help->CS_HELP_BAN_ALL);
     chanserv::add_help('cs_xcommands', 'help unban', &chanserv::$help->CS_HELP_BAN_ALL);
     // and add their seperate help docs
     if (ircd::$owner) {
         chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_OWNER_1);
         chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_DEOWNER_1);
         chanserv::add_help('cs_xcommands', 'help owner', &chanserv::$help->CS_HELP_XCOMMANDS_OWNER);
         chanserv::add_help('cs_xcommands', 'help deowner', &chanserv::$help->CS_HELP_XCOMMANDS_OWNER);
     }
     // add help for owner commands
     if (ircd::$protect) {
         chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_PROTECT_1);
         chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_DEPROTECT_1);
         chanserv::add_help('cs_xcommands', 'help protect', &chanserv::$help->CS_HELP_XCOMMANDS_PROTECT);
         chanserv::add_help('cs_xcommands', 'help deprotect', &chanserv::$help->CS_HELP_XCOMMANDS_PROTECT);
     }
     // add help for protect commands
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_OP_1);
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_DEOP_1);
     chanserv::add_help('cs_xcommands', 'help op', &chanserv::$help->CS_HELP_XCOMMANDS_OP);
     chanserv::add_help('cs_xcommands', 'help deop', &chanserv::$help->CS_HELP_XCOMMANDS_OP);
     // now op
     if (ircd::$halfop) {
         chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_HALFOP_1);
         chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_DEHALFOP_1);
         chanserv::add_help('cs_xcommands', 'help halfop', &chanserv::$help->CS_HELP_XCOMMANDS_HALFOP);
         chanserv::add_help('cs_xcommands', 'help dehalfop', &chanserv::$help->CS_HELP_XCOMMANDS_HALFOP);
     }
     // halfop
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_VOICE_1);
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_DEVOICE_1);
     chanserv::add_help('cs_xcommands', 'help voice', &chanserv::$help->CS_HELP_XCOMMANDS_VOICE);
     chanserv::add_help('cs_xcommands', 'help devoice', &chanserv::$help->CS_HELP_XCOMMANDS_VOICE);
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_MODE_1);
     chanserv::add_help('cs_xcommands', 'help mode', &chanserv::$help->CS_HELP_MODE_ALL);
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_SYNC_1);
     chanserv::add_help('cs_xcommands', 'help sync', &chanserv::$help->CS_HELP_SYNC_ALL);
     // voice and mode & sync
     chanserv::add_help('cs_xcommands', 'help commands', &chanserv::$help->CS_HELP_TYPEMASK_1);
     chanserv::add_help('cs_xcommands', 'help typemask', &chanserv::$help->CS_HELP_TYPEMASK_ALL);
     // typemask
     chanserv::add_command('clear', 'cs_xcommands', 'clear_command');
     // clear command
     chanserv::add_command('kick', 'cs_xcommands', 'kick_command');
     chanserv::add_command('kickban', 'cs_xcommands', 'kickban_command');
     chanserv::add_command('ban', 'cs_xcommands', 'ban_command');
     chanserv::add_command('unban', 'cs_xcommands', 'unban_command');
     // add the commands for kick/bans etc
     if (ircd::$owner) {
         chanserv::add_command('owner', 'cs_xcommands', 'owner_command');
         chanserv::add_command('deowner', 'cs_xcommands', 'deowner_command');
     }
     // protect
     if (ircd::$protect) {
         chanserv::add_command('protect', 'cs_xcommands', 'protect_command');
         chanserv::add_command('deprotect', 'cs_xcommands', 'deprotect_command');
     }
     // protect
     chanserv::add_command('op', 'cs_xcommands', 'op_command');
     chanserv::add_command('deop', 'cs_xcommands', 'deop_command');
     // op
     if (ircd::$halfop) {
         chanserv::add_command('halfop', 'cs_xcommands', 'halfop_command');
         chanserv::add_command('dehalfop', 'cs_xcommands', 'dehalfop_command');
     }
     // halfop
     chanserv::add_command('voice', 'cs_xcommands', 'voice_command');
     chanserv::add_command('devoice', 'cs_xcommands', 'devoice_command');
     chanserv::add_command('mode', 'cs_xcommands', 'mode_command');
     chanserv::add_command('sync', 'cs_xcommands', 'sync_command');
     // and the rest, voice & mode & sync.
 }