summary refs log tree commit diff
path: root/command.c
diff options
context:
space:
mode:
authorC. McEnroe2021-07-02 15:24:11 -0400
committerC. McEnroe2021-07-02 15:24:11 -0400
commit44457f85c6fce35498cff3b58aa635e84a56d40b (patch)
tree539837615e5f22265dec83da1c0db41c61c7f39f /command.c
parent54251acae34fe7d72f1f93a69158fbe16cc8a30e (diff)
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) {