From 02fe4a30856a7bc931e680e8667ab9fa13149b15 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 2 Oct 2006 08:47:14 +0000 Subject: modestacker class, stacks modes and returns a string list of up to MAXMODES modes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5389 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/hashcomp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/hashcomp.h') diff --git a/include/hashcomp.h b/include/hashcomp.h index 69fa677b8..dde123acb 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -123,6 +123,17 @@ namespace irc bool operator()(const insp_inaddr &s1, const insp_inaddr &s2) const; }; + class modestacker + { + private: + std::deque sequence; + bool adding; + public: + modestacker(bool add); + void Push(char modeletter, const std::string ¶meter); + std::deque GetStackedLine(); + }; + /** irc::tokenstream reads a string formatted as per RFC1459 and RFC2812. * It will split the string into 'tokens' each containing one parameter * from the string. -- cgit v1.2.3