diff options
author | June McEnroe <june@causal.agency> | 2021-06-18 12:28:09 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-06-18 12:28:09 -0400 |
commit | a5a225c52c39f438a95b0ed2481ee273aab02640 (patch) | |
tree | ce756be25021a323d536443e135cbe0286a8cd6e /handle.c | |
parent | Handle 338 as whois reply (diff) | |
download | catgirl-a5a225c52c39f438a95b0ed2481ee273aab02640.tar.gz catgirl-a5a225c52c39f438a95b0ed2481ee273aab02640.zip |
Add -m mode option to set user modes
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/handle.c b/handle.c index de5bc43..0a5d95c 100644 --- a/handle.c +++ b/handle.c @@ -241,6 +241,7 @@ static void handleReplyWelcome(struct Message *msg) { require(msg, false, 1); set(&self.nick, msg->params[0]); completeTouch(Network, self.nick, Default); + if (self.mode) ircFormat("MODE %s %s\r\n", self.nick, self.mode); if (self.join) { uint count = 1; for (const char *ch = self.join; *ch && *ch != ' '; ++ch) { |