summaryrefslogtreecommitdiff
path: root/src/wildcard.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-10-19 11:55:17 +0100
committerPeter Powell <petpow@saberuk.com>2017-10-19 14:58:21 +0100
commit3c7e105d09c99ed0b74a63bef68d5f2a1cbd8cff (patch)
treec0fc69bbcd77322a7ea2fad4bb32a5c107479041 /src/wildcard.cpp
parent020c1d6ea658956e7cb2462a748790a4f4e30787 (diff)
Switch from std::stringstream to irc::spacesepstream.
The latter is more suited to the things we have previously been using std::stringstream for.
Diffstat (limited to 'src/wildcard.cpp')
-rw-r--r--src/wildcard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wildcard.cpp b/src/wildcard.cpp
index 6711f953a..4a313af76 100644
--- a/src/wildcard.cpp
+++ b/src/wildcard.cpp
@@ -109,9 +109,9 @@ bool InspIRCd::MatchCIDR(const char* str, const char* mask, unsigned const char*
bool InspIRCd::MatchMask(const std::string& masks, const std::string& hostname, const std::string& ipaddr)
{
- std::stringstream masklist(masks);
+ irc::spacesepstream masklist(masks);
std::string mask;
- while (masklist >> mask)
+ while (masklist.GetToken(mask))
{
if (InspIRCd::Match(hostname, mask, ascii_case_insensitive_map) ||
InspIRCd::MatchCIDR(ipaddr, mask, ascii_case_insensitive_map))