Changeset f4a5940 for irc_commands.c


Ignore:
Timestamp:
2006-01-15T20:31:59Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
daa9e02
Parents:
6fda350
Message:

Added REHASH command, IPC emulation in daemon (non-forked) mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    r6fda350 rf4a5940  
    233233}
    234234
    235 /* TODO: Attach this one to NOTICE too! */
    236235static int irc_cmd_privmsg( irc_t *irc, char **cmd )
    237236{
     
    530529}
    531530
    532 /* TODO: Alias to NS */
    533531static int irc_cmd_nickserv( irc_t *irc, char **cmd )
    534532{
     
    576574       
    577575        irc_privmsg( irc, u, "NOTICE", irc->nick, "COMPLETIONS ", "END" );
     576       
     577        return( 1 );
     578}
     579
     580static int irc_cmd_rehash( irc_t *irc, char **cmd )
     581{
     582        ipc_to_master( cmd );
     583       
     584        irc_reply( irc, 382, "%s :Rehashing", CONF_FILE );
    578585       
    579586        return( 1 );
     
    610617        { "wallops",     0, NULL,                IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
    611618        { "lilo",        0, NULL,                IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
     619        { "rehash",      0, irc_cmd_rehash,      IRC_CMD_OPER_ONLY },
    612620        { NULL }
    613621};
Note: See TracChangeset for help on using the changeset viewer.