Changeset 769 for branches/ithildin-1.1
- Timestamp:
- 09/08/06 00:39:04 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ithildin-1.1/modules/ircd/addons/antidrone.c
r768 r769 22 22 23 23 static bool anti_bear = false; 24 static int anti_bear_message; 24 25 25 26 HOOK_FUNCTION(antidrone_conf_hook); … … 31 32 add_hook(me.events.read_conf, antidrone_conf_hook); 32 33 34 anti_bear_message = create_message("antidrone-bear-message", 35 "Please ignore this test message."); 36 33 37 antidrone_conf_hook(NULL, NULL); 34 38 return 1; … … 39 43 remove_hook(ircd.events.register_client, antidrone_rc_hook); 40 44 remove_hook(me.events.read_conf, antidrone_conf_hook); 45 46 destroy_message(anti_bear_message); 41 47 } 42 48 … … 57 63 58 64 if (anti_bear) 59 sendto_one(cli, "439", ": Anti drone test numeric");65 sendto_one(cli, "439", ":%s", MSG_FMT(cli, anti_bear_message)); 60 66 61 67 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.
