diff options
author | June McEnroe <june@causal.agency> | 2020-02-08 00:02:10 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-08 00:02:10 -0500 |
commit | 55173ef29777959b0b761097499e3eef397de609 (patch) | |
tree | c040f1fc48284989e2eee9fe408e2205b9816723 /command.c | |
parent | Handle NICK (diff) | |
download | catgirl-55173ef29777959b0b761097499e3eef397de609.tar.gz catgirl-55173ef29777959b0b761097499e3eef397de609.zip |
Add /nick
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/command.c b/command.c index 8bd8b28..7416f81 100644 --- a/command.c +++ b/command.c @@ -69,6 +69,12 @@ static void commandQuit(size_t id, char *params) { set(&self.quit, (params ? params : "Goodbye")); } +static void commandNick(size_t id, char *params) { + (void)id; + if (!params) return; + ircFormat("NICK :%s\r\n", params); +} + static void commandWindow(size_t id, char *params) { if (!params) return; if (isdigit(params[0])) { @@ -85,6 +91,7 @@ static const struct Handler { } Commands[] = { { "/join", commandJoin }, { "/me", commandMe }, + { "/nick", commandNick }, { "/notice", commandNotice }, { "/quit", commandQuit }, { "/quote", commandQuote }, |