From e91de41278ff5993973999e4e5095360612ec056 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 5 May 2013 01:18:16 -0400 Subject: Add an option to sepstream to allow it to return empty tokens if multiple separators are found in a row --- include/anope.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/anope.h b/include/anope.h index 90c0e4c36..03bb2418d 100644 --- a/include/anope.h +++ b/include/anope.h @@ -554,10 +554,13 @@ class CoreExport sepstream /** Current string position */ size_t pos; + /** If set then GetToken() can return an empty string + */ + bool allow_empty; public: /** Create a sepstream and fill it with the provided data */ - sepstream(const Anope::string &source, char seperator); + sepstream(const Anope::string &source, char seperator, bool allowempty = false); /** Fetch the next token from the stream * @param token The next token from the stream is placed here -- cgit