aboutsummaryrefslogtreecommitdiffstats
path: root/modules/uninvite.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-08 17:01:22 +0000
committerGravatar Sadie Powell2026-03-08 17:47:44 +0000
commitbb1e5a7b60ea200ddae99f263a38a219879f9617 (patch)
treea5cecddf75a3458447d09ca1fa2f859c4486ddec /modules/uninvite.cpp
parentRemove 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/uninvite.cpp')
-rw-r--r--modules/uninvite.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/uninvite.cpp b/modules/uninvite.cpp
index 2d9eed36b..2af6c9980 100644
--- a/modules/uninvite.cpp
+++ b/modules/uninvite.cpp
@@ -49,7 +49,7 @@ public:
CmdResult Handle(User* user, const Params& parameters) override
{
User* u;
- if (IS_LOCAL(user))
+ if (user->IsLocal())
u = ServerInstance->Users.FindNick(parameters[0], true);
else
u = ServerInstance->Users.Find(parameters[0]);
@@ -70,7 +70,7 @@ public:
return CmdResult::FAILURE;
}
- if (IS_LOCAL(user))
+ if (user->IsLocal())
{
if (c->GetPrefixValue(user) < HALFOP_VALUE)
{
@@ -83,7 +83,7 @@ public:
* only if the target is local. Otherwise the command will be
* passed to the target users server.
*/
- LocalUser* lu = IS_LOCAL(u);
+ auto* lu = u->AsLocal();
if (lu)
{
// XXX: The source of the numeric we send must be the server of the user doing the /UNINVITE,