diff options
| author | 2022-10-29 15:44:01 +0100 | |
|---|---|---|
| committer | 2022-10-29 15:54:59 +0100 | |
| commit | 6fc111ccb6650a67f014977b2e7ebc2fb5b16790 (patch) | |
| tree | ea56149af9bf3e2226e32385ad6989355266090d /include/clientprotocolmsg.h | |
| parent | Use User::IsFullyConnected instead of checking for REG_ALL. (diff) | |
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.
Diffstat (limited to 'include/clientprotocolmsg.h')
| -rw-r--r-- | include/clientprotocolmsg.h | 6 |
1 files changed, 3 insertions, 3 deletions
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("*"); |
