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/clientprotocolmsg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/clientprotocolmsg.h') diff --git a/include/clientprotocolmsg.h b/include/clientprotocolmsg.h index 7c6c809de..fb60d74cb 100644 --- a/include/clientprotocolmsg.h +++ b/include/clientprotocolmsg.h @@ -67,12 +67,12 @@ class ClientProtocol::Messages::Numeric public: /** Constructor, target is a User. * @param num Numeric object to send. Must remain valid as long as this object is alive and must not be modified. - * @param user User to send the numeric to. May be unregistered, must remain valid as long as this object is alive. + * @param user User to send the numeric to. May be partially connected, must remain valid as long as this object is alive. */ Numeric(const ::Numeric::Numeric& num, User* user) : ClientProtocol::Message(nullptr, (num.GetServer() ? num.GetServer() : ServerInstance->FakeClient->server)->GetPublicName()) { - if (user->registered & REG_NICK) + if (user->connected & User::CONN_NICK) PushParamRef(user->nick); else PushParam("*"); @@ -432,7 +432,7 @@ class ClientProtocol::Messages::Privmsg void PushTargetUser(const User* targetuser) { - if (targetuser->registered & REG_NICK) + if (targetuser->connected & User::CONN_NICK) PushParamRef(targetuser->nick); else PushParam("*"); -- cgit v1.3.1-10-gc9f91