|
@@ -22,7 +22,6 @@
|
22
|
22
|
|
23
|
23
|
package com.dmdirc;
|
24
|
24
|
|
25
|
|
-import com.dmdirc.config.ConfigBinding;
|
26
|
25
|
import com.dmdirc.events.ChannelClosedEvent;
|
27
|
26
|
import com.dmdirc.events.ChannelSelfActionEvent;
|
28
|
27
|
import com.dmdirc.events.ChannelSelfJoinEvent;
|
|
@@ -81,12 +80,6 @@ public class Channel extends FrameContainer implements GroupChat {
|
81
|
80
|
private final GroupChatUserManager groupChatUserManager;
|
82
|
81
|
/** Whether we're in this channel or not. */
|
83
|
82
|
private boolean isOnChannel;
|
84
|
|
- /** Whether we should show mode prefixes in text. */
|
85
|
|
- @ConfigBinding(domain = "channel", key = "showmodeprefix")
|
86
|
|
- private volatile boolean showModePrefix;
|
87
|
|
- /** Whether we should show colours in nicks. */
|
88
|
|
- @ConfigBinding(domain = "ui", key = "shownickcoloursintext")
|
89
|
|
- private volatile boolean showColours;
|
90
|
83
|
|
91
|
84
|
/**
|
92
|
85
|
* Creates a new instance of Channel.
|
|
@@ -117,8 +110,6 @@ public class Channel extends FrameContainer implements GroupChat {
|
117
|
110
|
this.connection = connection;
|
118
|
111
|
this.groupChatUserManager = groupChatUserManager;
|
119
|
112
|
|
120
|
|
- getConfigManager().getBinder().bind(this, Channel.class);
|
121
|
|
-
|
122
|
113
|
topics = EvictingQueue.create(
|
123
|
114
|
getConfigManager().getOptionInt("channel", "topichistorysize"));
|
124
|
115
|
|
|
@@ -269,7 +260,6 @@ public class Channel extends FrameContainer implements GroupChat {
|
269
|
260
|
|
270
|
261
|
// Remove any callbacks or listeners
|
271
|
262
|
eventHandler.unregisterCallbacks();
|
272
|
|
- getConfigManager().getBinder().unbind(this);
|
273
|
263
|
|
274
|
264
|
connection.getParser().map(Parser::getCallbackManager)
|
275
|
265
|
.ifPresent(cm -> cm.unsubscribe(eventHandler));
|
|
@@ -349,22 +339,6 @@ public class Channel extends FrameContainer implements GroupChat {
|
349
|
339
|
getEventBus().publishAsync(new NickListUpdatedEvent(this));
|
350
|
340
|
}
|
351
|
341
|
|
352
|
|
- /**
|
353
|
|
- * Returns a string containing the most important mode for the specified client.
|
354
|
|
- *
|
355
|
|
- * @param user The channel client to check.
|
356
|
|
- *
|
357
|
|
- * @return A string containing the most important mode, or an empty string if there are no
|
358
|
|
- * (known) modes.
|
359
|
|
- */
|
360
|
|
- private String getModes(final GroupChatUser user) {
|
361
|
|
- if (user == null || !showModePrefix) {
|
362
|
|
- return "";
|
363
|
|
- } else {
|
364
|
|
- return user.getImportantMode();
|
365
|
|
- }
|
366
|
|
- }
|
367
|
|
-
|
368
|
342
|
// ---------------------------------------------------- TOPIC HANDLING -----
|
369
|
343
|
/**
|
370
|
344
|
* Adds the specified topic to this channel's topic list.
|