Browse Source

Check for the first character not the 2nd...

tags/0.6.3m2a1
Shane Mc Cormack 15 years ago
parent
commit
aa7e707d41
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/com/dmdirc/parser/irc/ProcessMessage.java

+ 1
- 1
src/com/dmdirc/parser/irc/ProcessMessage.java View File

@@ -159,7 +159,7 @@ public class ProcessMessage extends IRCProcessor {
159 159
 		// CTCP and CTCPReplies that are aimed at a channel with a prefix are
160 160
 		// handled as if the prefix wasn't used. This can be changed in the future
161 161
 		// if desired.
162
-		final char modePrefix = token[2].charAt(1);
162
+		final char modePrefix = token[2].charAt(0);
163 163
 		final boolean hasModePrefix =  (myParser.prefixMap.containsKey(modePrefix) && !myParser.prefixModes.containsKey(modePrefix));
164 164
 		final String targetName = (hasModePrefix) ? token[2].substring(1) : token[2];
165 165
 		

Loading…
Cancel
Save