Changeset 769 for branches/ithildin-1.1


Ignore:
Timestamp:
09/08/06 00:39:04 (6 years ago)
Author:
wd
Message:

Add a message format for the anti-bear numeric we send.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/ircd/addons/antidrone.c

    r768 r769  
    2222 
    2323static bool anti_bear = false; 
     24static int anti_bear_message; 
    2425 
    2526HOOK_FUNCTION(antidrone_conf_hook); 
     
    3132    add_hook(me.events.read_conf, antidrone_conf_hook); 
    3233 
     34    anti_bear_message = create_message("antidrone-bear-message", 
     35            "Please ignore this test message."); 
     36 
    3337    antidrone_conf_hook(NULL, NULL); 
    3438    return 1; 
     
    3943    remove_hook(ircd.events.register_client, antidrone_rc_hook); 
    4044    remove_hook(me.events.read_conf, antidrone_conf_hook); 
     45 
     46    destroy_message(anti_bear_message); 
    4147} 
    4248 
     
    5763 
    5864    if (anti_bear) 
    59         sendto_one(cli, "439", ":Anti drone test numeric"); 
     65        sendto_one(cli, "439", ":%s", MSG_FMT(cli, anti_bear_message)); 
    6066 
    6167    return NULL; 
Note: See TracChangeset for help on using the changeset viewer.