modules/chanserv/events.h File Reference

Go to the source code of this file.

Functions

int events_init ()
int events_shutdown ()


Function Documentation

int events_init (  ) 

Definition at line 152 of file events.c.

References bind_add_simple(), got_join(), got_mode(), got_msg(), got_part(), got_pub(), modefight_cleanup(), modefight_timer_id, NULL, and timer_create_repeater.

00153 {
00154   egg_timeval_t howlong = {1, 0};
00155 
00156   bind_add_simple("join", NULL, NULL, got_join);
00157   bind_add_simple("part", NULL, NULL, got_part);
00158   bind_add_simple("pubm", NULL, NULL, got_pub);
00159   bind_add_simple("msgm", NULL, NULL, got_msg);
00160   bind_add_simple("mode", NULL, NULL, got_mode);
00161   modefight_timer_id = timer_create_repeater(&howlong, "modefight_cleanup", modefight_cleanup);
00162   return(0);
00163 }

int events_shutdown (  ) 

Definition at line 165 of file events.c.

References bind_rem_simple(), got_join(), got_mode(), got_msg(), got_part(), got_pub(), modefight_timer_id, NULL, and timer_destroy().

00166 {
00167   bind_rem_simple("join", NULL, NULL, got_join);
00168   bind_rem_simple("part", NULL, NULL, got_part);
00169   bind_rem_simple("pubm", NULL, NULL, got_pub);
00170   bind_rem_simple("msgm", NULL, NULL, got_msg);
00171   bind_rem_simple("mode", NULL, NULL, got_mode);
00172   timer_destroy(modefight_timer_id);
00173   return(0);
00174 }


Generated on Sun Nov 30 18:43:35 2008 for eggdrop1.9 by  doxygen 1.5.6