about summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--input.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/input.c b/input.c
index bbbc0d3..024941d 100644
--- a/input.c
+++ b/input.c
@@ -42,7 +42,12 @@ typedef void Handler(struct Tag tag, char *params);
 
 static void inputJoin(struct Tag tag, char *params) {
 	char *chan = strsep(&params, " ");
-	ircFmt("JOIN :%s\r\n", chan ? chan : tag.name);
+	char *key = strsep(&params, " ");
+	if (key) {
+		ircFmt("JOIN %s %s\r\n", chan, key);
+	} else {
+		ircFmt("JOIN %s\r\n", chan ? chan : tag.name);
+	}
 }
 
 static void inputMe(struct Tag tag, char *params) {
tr class='nohover-highlight'> 2017-05-01Clean up style in xxJune McEnroe 2017-05-01Clean up style in pbdJune McEnroe 2017-05-01Use EX_OK in pbcopyJune McEnroe 2017-04-30Clean up clockJune McEnroe 2017-04-30Clean up error strings in briJune McEnroe 2017-03-18Add -u option to xxJune McEnroe 2017-03-15Fix non-string-literal-format-string in briJune McEnroe 2017-03-15Fix bri compilationJune McEnroe cc will remove the file itself just fine. Always exit in case any of the shell commands fail. 2017-03-15Use psvar for title settingJune McEnroe Prevents prompt expansion from happening on the command being run when it is set in the title. 2017-03-14Add bri brightness control scriptJune McEnroe This is probably terrible. 2017-03-14Add comment to tmux terminal overrideJune McEnroe 2017-03-13Have tmux set block cursor on linux consoleJune McEnroe 2017-03-13Use inverse for Visual in colorschemeJune McEnroe