1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Rename to "/capability enter" and "/capability status".

Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
This commit is contained in:
Edward Tomasz Napierala 2017-07-26 02:11:46 +01:00
parent d5d45c29b8
commit 3200c381db

View File

@ -25,7 +25,12 @@
#include <sys/capsicum.h>
#include <string.h>
static void cmd_cap_enter(void)
static void cmd_capsicum(const char *data, SERVER_REC *server, void *item)
{
command_runsub("capsicum", data, server, item);
}
static void cmd_capsicum_enter(void)
{
int error;
@ -37,7 +42,7 @@ static void cmd_cap_enter(void)
}
}
static void cmd_cap_getmode(void)
static void cmd_capsicum_status(void)
{
u_int mode;
int error;
@ -55,12 +60,14 @@ static void cmd_cap_getmode(void)
void capsicum_init(void)
{
command_bind("cap_enter", NULL, (SIGNAL_FUNC) cmd_cap_enter);
command_bind("cap_getmode", NULL, (SIGNAL_FUNC) cmd_cap_getmode);
command_bind("capsicum", NULL, (SIGNAL_FUNC) cmd_capsicum);
command_bind("capsicum enter", NULL, (SIGNAL_FUNC) cmd_capsicum_enter);
command_bind("capsicum status", NULL, (SIGNAL_FUNC) cmd_capsicum_status);
}
void capsicum_deinit(void)
{
command_unbind("cap_enter", (SIGNAL_FUNC) cmd_cap_enter);
command_unbind("cap_getmode", (SIGNAL_FUNC) cmd_cap_getmode);
command_unbind("capsicum", (SIGNAL_FUNC) cmd_capsicum);
command_unbind("capsicum enter", (SIGNAL_FUNC) cmd_capsicum_enter);
command_unbind("capsicum status", (SIGNAL_FUNC) cmd_capsicum_status);
}