Browse Source

Single If not multiple.

Sorta related to issue 1176 I guess. Need a general-tidying issue!


git-svn-id: http://svn.dmdirc.com/trunk@3963 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 years ago
parent
commit
ba4946af09
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      src/com/dmdirc/parser/ProcessMode.java

+ 2
- 4
src/com/dmdirc/parser/ProcessMode.java View File

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

Loading…
Cancel
Save