diff options
| author | 2026-03-08 17:01:22 +0000 | |
|---|---|---|
| committer | 2026-03-08 17:47:44 +0000 | |
| commit | bb1e5a7b60ea200ddae99f263a38a219879f9617 (patch) | |
| tree | a5cecddf75a3458447d09ca1fa2f859c4486ddec /modules/setname.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 'modules/setname.cpp')
| -rw-r--r-- | modules/setname.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setname.cpp b/modules/setname.cpp index 3d6cfe7b1..ea50ff29e 100644 --- a/modules/setname.cpp +++ b/modules/setname.cpp @@ -47,7 +47,7 @@ public: if (parameters.size() > 1) { const auto& targetnick = parameters[0]; - if (IS_LOCAL(user)) + if (user->IsLocal()) { // For local users we need to check if they can use the command. target = ServerInstance->Users.FindNick(targetnick, true); @@ -70,7 +70,7 @@ public: } } - if (!IS_LOCAL(target)) + if (!target->IsLocal()) return CmdResult::SUCCESS; // Their server will handle this. const auto& newreal = parameters.back(); |
