summaryrefslogtreecommitdiff
path: root/modules/hostserv
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-27 10:40:23 +0000
committerSadie Powell <sadie@witchery.services>2024-02-27 10:48:55 +0000
commitb5b3c744778ed0cbceb03f2f8dbbec33d2fd0e94 (patch)
treee6d8a7c143a11035be55ffffcdc97395eb5b4e25 /modules/hostserv
parent73d4ac6de04a1035ac36182d3f269cc938c6bc19 (diff)
Make functions that don't use `this` static.
Diffstat (limited to 'modules/hostserv')
-rw-r--r--modules/hostserv/hs_request.cpp2
-rw-r--r--modules/hostserv/hs_set.cpp2
2 files changed, 2 insertions, 2 deletions
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;