|
@@ -38,7 +38,6 @@ import com.dmdirc.interfaces.config.ConfigChangeListener;
|
38
|
38
|
import com.dmdirc.interfaces.config.IdentityController;
|
39
|
39
|
import com.dmdirc.parser.interfaces.ChannelClientInfo;
|
40
|
40
|
import com.dmdirc.parser.interfaces.ChannelInfo;
|
41
|
|
-import com.dmdirc.parser.interfaces.ClientInfo;
|
42
|
41
|
import com.dmdirc.plugins.PluginDomain;
|
43
|
42
|
|
44
|
43
|
import java.util.Optional;
|
|
@@ -196,12 +195,9 @@ public class WindowStatusManager implements ConfigChangeListener {
|
196
|
195
|
textString.append(frame.getHost());
|
197
|
196
|
final Optional<Connection> connection = frame.getConnection();
|
198
|
197
|
if (showname && connection.isPresent()) {
|
199
|
|
- final ClientInfo client = connection.get().getParser().get().getClient(frame.getHost());
|
200
|
|
- final String realname = client.getRealname();
|
201
|
|
- if (realname != null && !realname.isEmpty()) {
|
202
|
|
- textString.append(" - ");
|
203
|
|
- textString.append(client.getRealname());
|
204
|
|
- }
|
|
198
|
+ frame.getUser().getRealname().ifPresent(s -> {
|
|
199
|
+ textString.append(" - ").append(s);
|
|
200
|
+ });
|
205
|
201
|
}
|
206
|
202
|
return textString.toString();
|
207
|
203
|
}
|