summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorC. McEnroe2021-06-18 12:28:09 -0400
committerC. McEnroe2021-06-18 12:28:09 -0400
commita5a225c52c39f438a95b0ed2481ee273aab02640 (patch)
treece756be25021a323d536443e135cbe0286a8cd6e /handle.c
parentd3b2f86a4b6ce5aa9b5e54551ce2b399e13666b9 (diff)
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) {