aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-01-15 21:31:59 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2006-01-15 21:31:59 +0100
commitf4a59408250b76173418fad090d4623e5300c90f (patch)
tree1eb79bd250b9c5f5c4ed2de8ffd5202f0575b819 /irc_commands.c
parent6fda35070cadc83a6b78c85896fcaf85299e5ad8 (diff)
Added REHASH command, IPC emulation in daemon (non-forked) mode.
Diffstat (limited to 'irc_commands.c')
-rw-r--r--irc_commands.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/irc_commands.c b/irc_commands.c
index b2bde17b..5f666702 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -232,7 +232,6 @@ static int irc_cmd_invite( irc_t *irc, char **cmd )
return( 1 );
}
-/* TODO: Attach this one to NOTICE too! */
static int irc_cmd_privmsg( irc_t *irc, char **cmd )
{
if ( !cmd[2] )
@@ -529,7 +528,6 @@ static int irc_cmd_whowas( irc_t *irc, char **cmd )
return( 1 );
}
-/* TODO: Alias to NS */
static int irc_cmd_nickserv( irc_t *irc, char **cmd )
{
/* [SH] This aliases the NickServ command to PRIVMSG root */
@@ -579,6 +577,15 @@ static int irc_cmd_completions( irc_t *irc, char **cmd )
return( 1 );
}
+static int irc_cmd_rehash( irc_t *irc, char **cmd )
+{
+ ipc_to_master( cmd );
+
+ irc_reply( irc, 382, "%s :Rehashing", CONF_FILE );
+
+ return( 1 );
+}
+
static const command_t irc_commands[] = {
{ "pass", 1, irc_cmd_pass, IRC_CMD_PRE_LOGIN },
{ "user", 4, irc_cmd_user, IRC_CMD_PRE_LOGIN },
@@ -609,6 +616,7 @@ static const command_t irc_commands[] = {
{ "die", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
{ "wallops", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
{ "lilo", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
+ { "rehash", 0, irc_cmd_rehash, IRC_CMD_OPER_ONLY },
{ NULL }
};