From b752181177a868a192ede87305957c165fa274f8 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Sep 2006 15:21:20 +0000 Subject: And fix it so it doesnt go into an infinite loop when meeting the end condition (oops) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5183 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mode.cpp b/src/mode.cpp index 1b2ea3442..f74a2ac60 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -487,7 +487,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool || (parameter_count > MAXMODES)) { /* We cant have a mode sequence this long */ - letter = mode_sequence.end(); + letter = mode_sequence.end() - 1; continue; } } -- cgit v1.2.3