From 4856a8f9672448397aa67d3893cd1d2e1224c1bf Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 18 Jan 2022 00:19:44 +0000 Subject: Add constructors to the TokenList class. --- src/inspstring.cpp | 5 +++++ src/modules/m_gateway.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/inspstring.cpp b/src/inspstring.cpp index c2e1f4a4d..e0d0ed296 100644 --- a/src/inspstring.cpp +++ b/src/inspstring.cpp @@ -201,6 +201,11 @@ bool InspIRCd::TimingSafeCompare(const std::string& one, const std::string& two) return (diff == 0); } +TokenList::TokenList(const std::string& tokenlist) +{ + AddList(tokenlist); +} + void TokenList::AddList(const std::string& tokenlist) { std::string token; diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp index 9868cc834..9b83d5b39 100644 --- a/src/modules/m_gateway.cpp +++ b/src/modules/m_gateway.cpp @@ -90,8 +90,8 @@ class WebIRCHost final , fingerprint(fp) , password(pass) , passhash(hash) + , trustedflags(flags) { - trustedflags.AddList(flags); } bool IsFlagTrusted(const std::string& flag) const -- cgit v1.3.1-10-gc9f91