From 4ae42b33e653d58539a2d7b5821cd2d1d692132b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 2 Oct 2006 09:24:49 +0000 Subject: Add more features to modestacker so that we can stack +, -, and parameterless modes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5391 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 2f35c9528..da3c603fa 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -726,6 +726,48 @@ int InspIRCd::Run() int main(int argc, char** argv) { + /* + // test suite for modestacker + irc::modestacker x(true); + x.Push('o',"Brain"); + x.Push('h',"Brain"); + x.Push('v',"Brain"); + x.Push('q',"Brain"); + x.Push('a',"Brain"); + x.Push('o',"Brain"); + x.Push('h',"Brain"); + x.Push('v',"Brain"); + x.Push('q',"Brain"); + x.Push('a',"Brain"); + x.Push('o',"Brain"); + x.Push('h',"Brain"); + x.Push('v',"Brain"); + x.Push('q',"Brain"); + x.Push('a',"Brain"); + x.Push('o',"Brain"); + x.Push('h',"Brain"); + x.Push('v',"Brain"); + x.Push('q',"Brain"); + x.Push('a',"Brain"); + x.Push('o',"Brain"); + x.Push('h',"Brain"); + x.Push('v',"Brain"); + x.Push('q',"Brain"); + x.Push('a',"Brain"); + + std::deque modes; + for (int i = 0; i < 2; i++) + { + x.GetStackedLine(modes); + printf("=== Stacked line ===\n"); + printf("Mode sequence length=%d\n",modes.size()); + for (size_t n = 0; n < modes.size(); n++) + { + printf("\tmodes[%d]='%s'\n",n,modes[n].c_str()); + } + } + return 0;*/ + SI = new InspIRCd(argc, argv); SI->Run(); delete SI; -- cgit v1.3.1-10-gc9f91