|
@@ -25,14 +25,13 @@ package com.dmdirc.commandparser.commands.channel;
|
25
|
25
|
import com.dmdirc.Channel;
|
26
|
26
|
import com.dmdirc.ChannelClientProperty;
|
27
|
27
|
import com.dmdirc.Server;
|
28
|
|
-import com.dmdirc.commandparser.commands.ChannelCommand;
|
29
|
28
|
import com.dmdirc.commandparser.CommandManager;
|
|
29
|
+import com.dmdirc.commandparser.commands.ChannelCommand;
|
30
|
30
|
import com.dmdirc.commandparser.commands.IntelligentCommand;
|
31
|
31
|
import com.dmdirc.parser.ChannelClientInfo;
|
32
|
32
|
import com.dmdirc.ui.input.AdditionalTabTargets;
|
33
|
33
|
import com.dmdirc.ui.input.TabCompletionType;
|
34
|
34
|
import com.dmdirc.ui.interfaces.ChannelWindow;
|
35
|
|
-import com.dmdirc.ui.swing.ChannelFrame;
|
36
|
35
|
import com.dmdirc.ui.interfaces.InputWindow;
|
37
|
36
|
import com.dmdirc.ui.messages.ColourManager;
|
38
|
37
|
|
|
@@ -94,7 +93,7 @@ public final class SetNickColour extends ChannelCommand implements IntelligentCo
|
94
|
93
|
if (text) {
|
95
|
94
|
target.getMap().remove(ChannelClientProperty.TEXT_FOREGROUND);
|
96
|
95
|
}
|
97
|
|
- ((ChannelFrame) channel.getFrame()).getNickList().repaint();
|
|
96
|
+ ((ChannelWindow) channel.getFrame()).redrawNicklist();
|
98
|
97
|
} else {
|
99
|
98
|
// We're setting the colour
|
100
|
99
|
final Color newColour = ColourManager.parseColour(args[offset], null);
|
|
@@ -102,12 +101,15 @@ public final class SetNickColour extends ChannelCommand implements IntelligentCo
|
102
|
101
|
sendLine(origin, isSilent, FORMAT_ERROR, "Invalid colour specified.");
|
103
|
102
|
return;
|
104
|
103
|
}
|
|
104
|
+
|
105
|
105
|
if (nicklist) {
|
106
|
106
|
target.getMap().put(ChannelClientProperty.NICKLIST_FOREGROUND, newColour);
|
107
|
107
|
}
|
|
108
|
+
|
108
|
109
|
if (text) {
|
109
|
110
|
target.getMap().put(ChannelClientProperty.TEXT_FOREGROUND, newColour);
|
110
|
111
|
}
|
|
112
|
+
|
111
|
113
|
((ChannelWindow) channel.getFrame()).updateNames();
|
112
|
114
|
}
|
113
|
115
|
}
|
|
@@ -124,8 +126,8 @@ public final class SetNickColour extends ChannelCommand implements IntelligentCo
|
124
|
126
|
|
125
|
127
|
/** {@inheritDoc}. */
|
126
|
128
|
public String getHelp() {
|
127
|
|
- return "setnickcolour [--nicklist|--text] <nick> [colour] - " +
|
128
|
|
- "set the specified person's display colour";
|
|
129
|
+ return "setnickcolour [--nicklist|--text] <nick> [colour] - "
|
|
130
|
+ + "set the specified person's display colour";
|
129
|
131
|
}
|
130
|
132
|
|
131
|
133
|
/** {@inheritDoc} */
|