summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-06-18 12:28:09 -0400
committerJune McEnroe <june@causal.agency>2021-06-18 12:28:09 -0400
commita5a225c52c39f438a95b0ed2481ee273aab02640 (patch)
treece756be25021a323d536443e135cbe0286a8cd6e /handle.c
parentHandle 338 as whois reply (diff)
downloadcatgirl-a5a225c52c39f438a95b0ed2481ee273aab02640.tar.gz
catgirl-a5a225c52c39f438a95b0ed2481ee273aab02640.zip
Add -m mode option to set user modes
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c1
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) {