diff options
author | linuxdaemon <linuxdaemon@users.noreply.github.com> | 2019-02-01 03:47:20 -0600 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-02-01 09:47:20 +0000 |
commit | 2ee2e8b60d707d7a1bb644a16060654cb86c7b9f (patch) | |
tree | 26fcbf7b673056bfe20e482170dd08e6a2185d6d /src/hashcomp.cpp | |
parent | e844a2cef9aeadbeea26531f98e5fe8b0b2f4dd1 (diff) |
Allow multiple fingerprints in an oper block (#1564)
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r-- | src/hashcomp.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index a51430a4b..4fee9fd55 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -287,6 +287,16 @@ bool irc::sepstream::StreamEnd() return this->pos > this->tokens.length(); } +bool irc::sepstream::Contains(const std::string& value) +{ + std::string token; + while (GetToken(token)) + if (value == token) + return true; + + return false; +} + irc::portparser::portparser(const std::string &source, bool allow_overlapped) : sep(source), in_range(0), range_begin(0), range_end(0), overlapped(allow_overlapped) { |