summaryrefslogtreecommitdiff
path: root/include/anope.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 01:18:16 -0400
committerAdam <Adam@anope.org>2013-05-05 02:00:33 -0400
commite91de41278ff5993973999e4e5095360612ec056 (patch)
tree9945adf89c708406b49b1e4651232c5994c0215a /include/anope.h
parent10b5b00db4f6f38f33b122f1a2cbcb788fc7c0eb (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.h5
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