about summary refs log tree commit diff
path: root/command.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-07-02 15:24:11 -0400
committerJune McEnroe <june@causal.agency>2021-07-02 15:24:11 -0400
commit44457f85c6fce35498cff3b58aa635e84a56d40b (patch)
tree539837615e5f22265dec83da1c0db41c61c7f39f /command.c
parentMove security to the features list (diff)
downloadcatgirl-44457f85c6fce35498cff3b58aa635e84a56d40b.tar.gz
catgirl-44457f85c6fce35498cff3b58aa635e84a56d40b.zip
Save invited channel for /join
Diffstat (limited to 'command.c')
-rw-r--r--command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/command.c b/command.c
index 1193615..3392fa9 100644
--- a/command.c
+++ b/command.c
@@ -149,6 +149,7 @@ static void commandMsg(uint id, char *params) {
 }
 
 static void commandJoin(uint id, char *params) {
+	if (!params && id == Network) params = self.invited;
 	if (!params) params = idNames[id];
 	uint count = 1;
 	for (char *ch = params; *ch && *ch != ' '; ++ch) {