diff options
| author | 2026-03-08 17:01:22 +0000 | |
|---|---|---|
| committer | 2026-03-08 17:47:44 +0000 | |
| commit | bb1e5a7b60ea200ddae99f263a38a219879f9617 (patch) | |
| tree | a5cecddf75a3458447d09ca1fa2f859c4486ddec /src/channels.cpp | |
| parent | Remove the unused remote user finding methods. (diff) | |
Replace IS_* with member functions.
- All user types get an Is* function.
- Only local users are cast using the old function so only local
users get an As* function.
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 62cf702df..d5d481f68 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -216,7 +216,7 @@ Membership* Channel::JoinUser(LocalUser* user, std::string cname, bool override, Membership* Channel::ForceJoin(User* user, const std::string* privs, bool bursting, bool created_by_local) { - if (IS_SERVER(user)) + if (user->IsServer()) { ServerInstance->Logs.Debug("CHANNELS", "Attempted to join server user {} to channel {}", user->uuid, this->name); @@ -352,7 +352,7 @@ void Channel::Write(ClientProtocol::Event& protoev, char status, const CUList& e for (const auto& [u, memb] : userlist) { - LocalUser* user = IS_LOCAL(u); + auto* user = u->AsLocal(); if ((user) && (!except_list.count(user))) { /* User doesn't have the status we're after */ @@ -471,7 +471,7 @@ bool Membership::SetPrefix(PrefixMode* delta_mh, bool adding) void Membership::WriteNotice(const std::string& text) const { - LocalUser* const localuser = IS_LOCAL(user); + auto* const localuser = user->AsLocal(); if (!localuser) return; |
