|
@@ -144,10 +144,15 @@ public final class JoinChannelCommand extends ServerCommand implements
|
144
|
144
|
prefix = "";
|
145
|
145
|
}
|
146
|
146
|
|
147
|
|
- for (String result : results) {
|
148
|
|
- // Only tab complete channels we're not already on
|
149
|
|
- if (!server.hasChannel(result)) {
|
150
|
|
- targets.add(prefix + result);
|
|
147
|
+ final boolean showExisting = source.getConfigManager()
|
|
148
|
+ .getOptionBool("commands", "join-tabexistingchannels");
|
|
149
|
+
|
|
150
|
+ if (!showExisting) {
|
|
151
|
+ for (String result : results) {
|
|
152
|
+ // Only tab complete channels we're not already on
|
|
153
|
+ if (!server.hasChannel(result)) {
|
|
154
|
+ targets.add(prefix + result);
|
|
155
|
+ }
|
151
|
156
|
}
|
152
|
157
|
}
|
153
|
158
|
|