aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_commands.c')
-rw-r--r--irc_commands.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/irc_commands.c b/irc_commands.c
index a7cb9963..3ef5566e 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -25,6 +25,7 @@
#define BITLBEE_CORE
#include "bitlbee.h"
+#include "ipc.h"
static int irc_cmd_pass( irc_t *irc, char **cmd )
{
@@ -605,6 +606,8 @@ static const command_t irc_commands[] = {
{ "motd", 0, irc_cmd_motd, IRC_CMD_LOGGED_IN },
{ "pong", 0, irc_cmd_pong, IRC_CMD_LOGGED_IN },
{ "completions", 0, irc_cmd_completions, IRC_CMD_LOGGED_IN },
+ { "die", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
+ { "wallop", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
{ NULL }
};
@@ -641,7 +644,10 @@ int irc_exec( irc_t *irc, char *cmd[] )
return( 1 );
}
- return irc_commands[i].execute( irc, cmd );
+ if( irc_commands[i].flags & IRC_CMD_TO_MASTER )
+ ipc_to_master( cmd );
+ else
+ return irc_commands[i].execute( irc, cmd );
}
return( 1 );