diff options
author | C. McEnroe | 2020-02-05 21:57:23 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-05 21:57:23 -0500 |
commit | 7c0e9cf3d2e83814fab3bb4bb09f7b955c2afaca (patch) | |
tree | 70adbed2adff0b4639f2a6647c6aa19121aa2f1a /command.c | |
parent | 7c0b60221bf22a8042b584c453bda0e3e87cd0ea (diff) |
Add /quit
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/command.c b/command.c index 0843bd3..7fb98af 100644 --- a/command.c +++ b/command.c @@ -56,12 +56,17 @@ static void commandMe(size_t id, char *params) { commandPrivmsg(id, buf); } +static void commandQuit(size_t id, char *params) { + set(&self.quit, (params ? params : "Goodbye")); +} + static const struct Handler { const char *cmd; Command *fn; } Commands[] = { { "/me", commandMe }, { "/notice", commandNotice }, + { "/quit", commandQuit }, { "/quote", commandQuote }, }; |