From bb1e5a7b60ea200ddae99f263a38a219879f9617 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 8 Mar 2026 17:01:22 +0000 Subject: 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. --- modules/spanningtree/fmode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/spanningtree/fmode.cpp') diff --git a/modules/spanningtree/fmode.cpp b/modules/spanningtree/fmode.cpp index 931a9c7c9..3a2e40c59 100644 --- a/modules/spanningtree/fmode.cpp +++ b/modules/spanningtree/fmode.cpp @@ -50,7 +50,7 @@ CmdResult CommandFMode::Handle(User* who, Params& params) ServerInstance->Modes.ModeParamsToChangeList(who, MODETYPE_CHANNEL, params, changelist, 2); ModeParser::ModeProcessFlag flags = ModeParser::MODE_LOCALONLY; - if ((TS == ourTS) && IS_SERVER(who)) + if ((TS == ourTS) && who->IsServer()) flags |= ModeParser::MODE_MERGE; ServerInstance->Modes.Process(who, chan, nullptr, changelist, flags); @@ -93,7 +93,7 @@ CmdResult CommandLMode::Handle(User* who, Params& params) } ModeParser::ModeProcessFlag flags = ModeParser::MODE_LOCALONLY; - if (chants == chan->age && IS_SERVER(who)) + if (chants == chan->age && who->IsServer()) flags |= ModeParser::MODE_MERGE; ServerInstance->Modes.Process(who, chan, nullptr, changelist, flags); -- cgit v1.3.1-10-gc9f91