From 6fc111ccb6650a67f014977b2e7ebc2fb5b16790 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 29 Oct 2022 15:44:01 +0100 Subject: Rename session registration to connection to avoid a semantic conflict. We previously referred to both session registration and user registration as "registration" which is confusing for users who aren't familiar with how IRC works. --- include/modules/cap.h | 2 +- include/modules/ctctags.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include/modules') diff --git a/include/modules/cap.h b/include/modules/cap.h index 77434642a..c5b07f04c 100644 --- a/include/modules/cap.h +++ b/include/modules/cap.h @@ -342,7 +342,7 @@ namespace Cap void SetUser(LocalUser* user) { - if (user->registered & REG_NICK) + if (user->connected & User::CONN_NICK) ReplaceParamRef(0, user->nick); else ReplaceParam(0, "*"); diff --git a/include/modules/ctctags.h b/include/modules/ctctags.h index c6724ed13..6433720bd 100644 --- a/include/modules/ctctags.h +++ b/include/modules/ctctags.h @@ -66,7 +66,7 @@ public: TagMessage(User* source, const User* targetuser, const ClientProtocol::TagMap& Tags) : ClientProtocol::Message("TAGMSG", source) { - if (targetuser->registered & REG_NICK) + if (targetuser->connected & User::CONN_NICK) PushParamRef(targetuser->nick); else PushParam("*"); -- cgit v1.3.1-10-gc9f91