aboutsummaryrefslogtreecommitdiff
path: root/modules/sethost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sethost.cpp')
-rw-r--r--modules/sethost.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/sethost.cpp b/modules/sethost.cpp
index f783ba0bc..278410351 100644
--- a/modules/sethost.cpp
+++ b/modules/sethost.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& newhost = parameters.back();