Ver código fonte

AutoCommands should match case-insensitively.

Change-Id: Iaf8e4e310b6228addf7819a3ce4783bd4d807845
Reviewed-on: http://gerrit.dmdirc.com/3916
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
pull/1/head
Chris Smith 9 anos atrás
pai
commit
ff9d4a7e4e

+ 3
- 3
src/com/dmdirc/commandparser/auto/AutoCommandHandler.java Ver arquivo

@@ -78,20 +78,20 @@ public class AutoCommandHandler {
78 78
         }
79 79
 
80 80
         if (autoCommand.getProfile().isPresent() && !event.getConnection().getProfile().getName()
81
-                .equals(autoCommand.getProfile().get())) {
81
+                .equalsIgnoreCase(autoCommand.getProfile().get())) {
82 82
             // There's a profile specified in the command that isn't matched
83 83
             return;
84 84
         }
85 85
 
86 86
         if (autoCommand.getServer().isPresent() && !event.getConnection().getAddress()
87
-                .equals(autoCommand.getServer().get())) {
87
+                .equalsIgnoreCase(autoCommand.getServer().get())) {
88 88
             // There's a server specified in the command that isn't matched
89 89
             return;
90 90
         }
91 91
 
92 92
 
93 93
         if (autoCommand.getNetwork().isPresent() && !event.getConnection().getNetwork()
94
-                .equals(autoCommand.getNetwork().get())) {
94
+                .equalsIgnoreCase(autoCommand.getNetwork().get())) {
95 95
             // There's a network specified in the command that isn't matched
96 96
             return;
97 97
         }

Carregando…
Cancelar
Salvar