diff options
author | Curtis McEnroe | 2019-07-02 22:12:07 -0400 |
---|---|---|
committer | Curtis McEnroe | 2019-07-02 22:12:07 -0400 |
commit | 3d1f7d80658db3b4839febb817c610dd06a7801b (patch) | |
tree | d1ef8122288ea121f9698ad8286c134826032ac7 /input.c | |
parent | 6223c9c8f8da33c27c07ee75d05bd17dacf401c0 (diff) |
Add /list
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 }, |