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