summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--handle.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/handle.c b/handle.c
index a46c149..4f9015c 100644
--- a/handle.c
+++ b/handle.c
@@ -138,7 +138,11 @@ static void handleReplyWelcome(char *prefix, char *params) {
 		self.nick = strdup(nick);
 		if (!self.nick) err(EX_OSERR, "strdup");
 	}
-	if (self.join) ircFmt("JOIN %s\r\n", self.join);
+	if (self.join && self.keys) {
+		ircFmt("JOIN %s %s\r\n", self.join, self.keys);
+	} else if (self.join) {
+		ircFmt("JOIN %s\r\n", self.join);
+	}
 	tabTouch(TagStatus, self.nick);
 
 	uiLog(TagStatus, UICold, L"You have arrived");
8-01-31Only load 128 glyphs in fbclockJune McEnroe 2018-01-30Style tweak fbclockJune McEnroe 2018-01-30Remove Tarmak and Colemak keylayoutsJune McEnroe 2018-01-29Generalize hnelJune McEnroe 2018-01-29Remove Tarmak remappings from vimJune McEnroe 2018-01-29Switch back to QWERTY on LinuxJune McEnroe 2018-01-29Take fbclock font in env varJune McEnroe 2018-01-29Support fbclock fonts wider than 8June McEnroe 2018-01-29Take font path on fbclock argvJune McEnroe 2018-01-29Add fbclockJune McEnroe 2018-01-29Remove color from MakefileJune McEnroe 2018-01-29Set t_Co = 8June McEnroe 2018-01-29Add :Q command aliasJune McEnroe 2018-01-29Add setuid target for briJune McEnroe 2018-01-28Add init function to fb interfaceJune McEnroe 2018-01-28Add color.cJune McEnroe