示例#1
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
 }
示例#2
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
 }
示例#3
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
 }
示例#4
0
 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
 }
示例#5
0
 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
 }
示例#6
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;
 }
示例#7
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
 }
示例#8
0
 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
 }