diff options
| author | 2026-03-08 17:01:22 +0000 | |
|---|---|---|
| committer | 2026-03-08 17:47:44 +0000 | |
| commit | bb1e5a7b60ea200ddae99f263a38a219879f9617 (patch) | |
| tree | a5cecddf75a3458447d09ca1fa2f859c4486ddec /modules/check.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/check.cpp')
| -rw-r--r-- | modules/check.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/check.cpp b/modules/check.cpp index ba9cd8b8e..4935b5376 100644 --- a/modules/check.cpp +++ b/modules/check.cpp @@ -109,7 +109,7 @@ public: { public: List(CheckContext& context, const char* checktype) - : Numeric::GenericBuilder<' ', false, Numeric::WriteRemoteNumericSink>(Numeric::WriteRemoteNumericSink(context.GetUser()), RPL_CHECK, false, (IS_LOCAL(context.GetUser()) ? context.GetUser()->nick.length() : ServerInstance->Config->Limits.MaxNick) + strlen(checktype) + 1) + : Numeric::GenericBuilder<' ', false, Numeric::WriteRemoteNumericSink>(Numeric::WriteRemoteNumericSink(context.GetUser()), RPL_CHECK, false, (context.GetUser()->IsLocal() ? context.GetUser()->nick.length() : ServerInstance->Config->Limits.MaxNick) + strlen(checktype) + 1) { GetNumeric().push(checktype).push(std::string()); } @@ -164,7 +164,7 @@ public: if (targetuser) { - LocalUser* localtarget = IS_LOCAL(targetuser); + auto* localtarget = targetuser->AsLocal(); /* /check on a user */ context.Write("nuh", targetuser->GetMask()); context.Write("realnuh", targetuser->GetRealMask()); |
