summary refs log tree commit diff
path: root/handle.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 /handle.c
parent54251acae34fe7d72f1f93a69158fbe16cc8a30e (diff)
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",