diff options
| author | 2022-01-18 00:19:44 +0000 | |
|---|---|---|
| committer | 2022-01-18 02:39:31 +0000 | |
| commit | 4856a8f9672448397aa67d3893cd1d2e1224c1bf (patch) | |
| tree | 6503b9e7a25a0456a86b62f0ccdf4ef710fbbadb /src | |
| parent | Revert "Allow setting extension data on connect classes". (diff) | |
Add constructors to the TokenList class.
Diffstat (limited to 'src')
| -rw-r--r-- | src/inspstring.cpp | 5 | ||||
| -rw-r--r-- | src/modules/m_gateway.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
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 |
