From b5b3c744778ed0cbceb03f2f8dbbec33d2fd0e94 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 27 Feb 2024 10:40:23 +0000 Subject: Make functions that don't use `this` static. --- modules/hostserv/hs_request.cpp | 2 +- modules/hostserv/hs_set.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/hostserv') diff --git a/modules/hostserv/hs_request.cpp b/modules/hostserv/hs_request.cpp index dac9fc738..be6831ff8 100644 --- a/modules/hostserv/hs_request.cpp +++ b/modules/hostserv/hs_request.cpp @@ -67,7 +67,7 @@ struct HostRequest final class CommandHSRequest final : public Command { - bool isvalidchar(char c) + static bool isvalidchar(char c) { return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '.' || c == '-'; } diff --git a/modules/hostserv/hs_set.cpp b/modules/hostserv/hs_set.cpp index f923057c2..665e24467 100644 --- a/modules/hostserv/hs_set.cpp +++ b/modules/hostserv/hs_set.cpp @@ -108,7 +108,7 @@ public: class CommandHSSetAll final : public Command { - void Sync(const NickAlias *na) + static void Sync(const NickAlias *na) { if (!na || !na->HasVhost()) return; -- cgit