about summary refs log tree commit diff
path: root/handle.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 /handle.c
parentMove security to the features list (diff)
downloadcatgirl-44457f85c6fce35498cff3b58aa635e84a56d40b.tar.gz
catgirl-44457f85c6fce35498cff3b58aa635e84a56d40b.zip
Save invited channel for /join
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/handle.c b/handle.c
index bfe6e8c..a8f054c 100644
--- a/handle.c
+++ b/handle.c
@@ -479,6 +479,7 @@ static void handleQuit(struct Message *msg) {
 static void handleInvite(struct Message *msg) {
 	require(msg, true, 2);
 	if (!strcmp(msg->params[0], self.nick)) {
+		set(&self.invited, msg->params[1]);
 		uiFormat(
 			Network, filterCheck(Hot, Network, msg), tagTime(msg),
 			"\3%02d%s\3\tinvites you to \3%02d%s\3",