From 3d1f7d80658db3b4839febb817c610dd06a7801b Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 2 Jul 2019 22:12:07 -0400 Subject: Add /list --- input.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'input.c') diff --git a/input.c b/input.c index 81ff1cf..c4f707e 100644 --- a/input.c +++ b/input.c @@ -50,6 +50,16 @@ static void inputJoin(struct Tag tag, char *params) { } } +static void inputList(struct Tag tag, char *params) { + (void)tag; + char *chan = strsep(¶ms, " "); + if (chan) { + ircFmt("LIST %s\r\n", chan); + } else { + ircFmt("LIST\r\n"); + } +} + static void inputMe(struct Tag tag, char *params) { privmsg(tag, true, params ? params : ""); } @@ -189,6 +199,7 @@ static const struct { { "/close", inputClose }, { "/help", inputMan }, { "/join", inputJoin }, + { "/list", inputList }, { "/man", inputMan }, { "/me", inputMe }, { "/move", inputMove }, -- cgit 1.4.1-2-gfad0