/* -------------------------------------------------------------------------- * * Module hooks * * -------------------------------------------------------------------------- */ int cm_noext_load(void) { /* register the channel mode */ if(chanmode_register(&cm_noext_mode) == NULL) return -1; hook_register(channel_message, HOOK_DEFAULT, cm_noext_hook); return 0; }
/* -------------------------------------------------------------------------- * * Module hooks * * -------------------------------------------------------------------------- */ int cm_op_load(void) { /* register the channel mode */ if(chanmode_register(&cm_op_mode) == NULL) return -1; hook_register(channel_join, HOOK_2ND, cm_op_hook); hook_register(chanuser_kick, HOOK_DEFAULT, cm_op_kick); return 0; }
/* -------------------------------------------------------------------------- * * Module hooks * * -------------------------------------------------------------------------- */ int cm_ban_load(void) { /* register the channel mode */ if(chanmode_register(&cm_ban_mode) == NULL) return -1; /* register a hook in channel_join */ hook_register(channel_join, HOOK_DEFAULT, cm_ban_hook); return 0; }