Pārlūkot izejas kodu

Fix mode processing.

Fixes Issue 1176


git-svn-id: http://svn.dmdirc.com/trunk@3962 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 gadus atpakaļ
vecāks
revīzija
b9fceeda8b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/com/dmdirc/parser/ProcessMode.java

+ 1
- 1
src/com/dmdirc/parser/ProcessMode.java Parādīt failu

@@ -170,7 +170,7 @@ public class ProcessMode extends IRCProcessor {
170 170
 				} else {
171 171
 					
172 172
 					if (bPositive || nValue == IRCParser.MODE_LIST || ((nValue & IRCParser.MODE_UNSET) == IRCParser.MODE_UNSET)) {
173
-						if (sModestr.length <= nParam+1) {
173
+						if (sModestr.length <= nParam) {
174 174
 							myParser.callErrorInfo(new ParserError(ParserError.ERROR_FATAL, "Broken Modes. Parameter required but not given.", myParser.getLastLine()));
175 175
 						}
176 176
 					}

Notiek ielāde…
Atcelt
Saglabāt