diff options
| author | 2026-03-08 17:01:22 +0000 | |
|---|---|---|
| committer | 2026-03-08 17:47:44 +0000 | |
| commit | bb1e5a7b60ea200ddae99f263a38a219879f9617 (patch) | |
| tree | a5cecddf75a3458447d09ca1fa2f859c4486ddec /modules/spanningtree/fmode.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/spanningtree/fmode.cpp')
| -rw-r--r-- | modules/spanningtree/fmode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
