/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2008 Robin Burchell <robin+git@viroteck.net>
- * Copyright (C) 2003, 2006-2008 Craig Edwards <craigedwards@brainbox.cc>
+ * Copyright (C) 2013, 2017 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2012 Robby <robby@chatbelgie.be>
+ * Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
+ * Copyright (C) 2008, 2010 Craig Edwards <brain@inspircd.org>
+ * Copyright (C) 2007-2008 Robin Burchell <robin+git@viroteck.net>
* Copyright (C) 2007-2008 Dennis Friis <peavey@inspircd.org>
*
* This file is part of InspIRCd. InspIRCd is free software: you can
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))