]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/hashcomp.h
Add the time tag on the server the message originates from.
[user/henk/code/inspircd.git] / include / hashcomp.h
index b9c568135f7da730de600a0308ea288f022e4b19..453e28c4572d6e1dd8f050c9f9a838d1119849ad 100644 (file)
@@ -148,6 +148,12 @@ namespace irc
                 * @return True if the end of the stream has been reached, otherwise false
                 */
                bool StreamEnd();
+
+               /** Returns true if the specified value exists in the stream
+                * @param value The value to search for
+                * @return True if the value was found, False otherwise
+                */
+               bool Contains(const std::string& value);
        };
 
        /** A derived form of sepstream, which seperates on commas
@@ -197,15 +203,18 @@ namespace irc
 
         public:
                /** Create a tokenstream and fill it with the provided data. */
-               tokenstream(const std::string& msg, size_t start = 0);
+               tokenstream(const std::string& msg, size_t start = 0, size_t end = std::string::npos);
+
+               /** Retrieves the underlying message. */
+               std::string& GetMessage() { return message; }
 
-               /** Retrieve the next <middle> token in the token stream.
+               /** Retrieve the next \<middle> token in the token stream.
                 * @param token The next token available, or an empty string if none remain.
                 * @return True if tokens are left to be read, false if the last token was just retrieved.
                 */
                bool GetMiddle(std::string& token);
 
-               /** Retrieve the next <trailing> token in the token stream.
+               /** Retrieve the next \<trailing> token in the token stream.
                 * @param token The next token available, or an empty string if none remain.
                 * @return True if tokens are left to be read, false if the last token was just retrieved.
                 */