Add /znc command

Only because ZNC tells you to use it and expects it to work.
master
Curtis McEnroe 2019-02-22 16:07:32 -05:00
parent 274a5f7d6e
commit 8bdd1578c7
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
2 changed files with 11 additions and 0 deletions

View File

@ -139,6 +139,11 @@ Show or set the topic of the current channel.
. .
.It Ic /whois Ar nick .It Ic /whois Ar nick
Query information about a user. Query information about a user.
.
.It Ic /znc Ar command
Send
.Xr znc 1
command.
.El .El
. .
.Pp .Pp

View File

@ -97,6 +97,11 @@ static void inputWhois(struct Tag tag, char *params) {
} }
} }
static void inputZNC(struct Tag tag, char *params) {
(void)tag;
ircFmt("ZNC %s\r\n", params ? params : "");
}
static void inputClose(struct Tag tag, char *params) { static void inputClose(struct Tag tag, char *params) {
(void)params; (void)params;
uiCloseTag(tag); uiCloseTag(tag);
@ -175,6 +180,7 @@ static const struct {
{ "/who", inputWho }, { "/who", inputWho },
{ "/whois", inputWhois }, { "/whois", inputWhois },
{ "/window", inputWindow }, { "/window", inputWindow },
{ "/znc", inputZNC },
}; };
static const size_t CommandsLen = sizeof(Commands) / sizeof(Commands[0]); static const size_t CommandsLen = sizeof(Commands) / sizeof(Commands[0]);