]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
And fix it so it doesnt go into an infinite loop when meeting the end condition ...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 9 Sep 2006 15:21:20 +0000 (15:21 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 9 Sep 2006 15:21:20 +0000 (15:21 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5183 e03df62e-2008-0410-955e-edbf42e46eb7

src/mode.cpp

index 1b2ea344253f712b53bce94987728d6f0206fc96..f74a2ac603afd05a3f90be5bff123c9c0d147baf 100644 (file)
@@ -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;
                                                                }
                                                        }