Przeglądaj źródła

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

tags/0.6.3m2a1
Shane Mc Cormack 15 lat temu
rodzic
commit
aa7e707d41
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/com/dmdirc/parser/irc/ProcessMessage.java

+ 1
- 1
src/com/dmdirc/parser/irc/ProcessMessage.java Wyświetl plik

@@ -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
 		

Ładowanie…
Anuluj
Zapisz