summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--catgirl.14
-rw-r--r--input.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/catgirl.1 b/catgirl.1
index c7dd091..4d8176f 100644
--- a/catgirl.1
+++ b/catgirl.1
@@ -1,4 +1,4 @@
-.Dd February 26, 2019
+.Dd July 2, 2019
 .Dt CATGIRL 1
 .Os
 .
@@ -113,7 +113,7 @@ may be used to abbreviate a command.
 .
 .Ss Chat Commands
 .Bl -tag -width Ds
-.It Ic /join Ar chan
+.It Ic /join Ar chan Op Ar key
 Join a channel.
 .
 .It Ic /me Op Ar action
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) {
in/when.y?id=0f4ebd49c8b6997ac46d89dd2c90cbc1011da54c&follow=1'>Add named dates to whenJune McEnroe 2022-08-14Remove tweets text fileJune McEnroe 2022-08-09Fix all copyright noticesJune McEnroe 2022-08-04Add Conversations With FriendsJune McEnroe 2022-07-30Add Normal PeopleJune McEnroe 2022-07-26Rewrite glitch from new pngoJune McEnroe 2022-07-26Update Care with time-to-ID and piercingsJune McEnroe 2022-07-26Add -w to upJune McEnroe 2022-07-13Set push.autoSetupRemoteJune McEnroe 2022-07-08Remove TOURJune McEnroe 2022-07-03Add The Bone Shard EmperorJune McEnroe 2022-06-25Bump xterm font size to 12June McEnroe 2022-06-10Handle subshells (and functions) inside substitutionsJune McEnroe 2022-06-10Switch to jorts Install scriptJune McEnroe 2022-06-08Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe