diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-09 15:21:20 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-09 15:21:20 +0000 |
commit | b752181177a868a192ede87305957c165fa274f8 (patch) | |
tree | a7d8e50316d3affc79781080304678dce3a704cd /src | |
parent | d65ee10c00f8d4b23b4e55cae293605a1ce3c689 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/mode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |