diff options
author | Adam <Adam@anope.org> | 2013-05-05 01:18:16 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-05 02:00:33 -0400 |
commit | e91de41278ff5993973999e4e5095360612ec056 (patch) | |
tree | 9945adf89c708406b49b1e4651232c5994c0215a /include/anope.h | |
parent | 10b5b00db4f6f38f33b122f1a2cbcb788fc7c0eb (diff) |
Add an option to sepstream to allow it to return empty tokens if multiple separators are found in a row
Diffstat (limited to 'include/anope.h')
-rw-r--r-- | include/anope.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |