|
@@ -52,7 +52,6 @@ import com.dmdirc.events.ServerWallusersEvent;
|
52
|
52
|
import com.dmdirc.events.StatusBarMessageEvent;
|
53
|
53
|
import com.dmdirc.events.UserErrorEvent;
|
54
|
54
|
import com.dmdirc.interfaces.Connection;
|
55
|
|
-import com.dmdirc.interfaces.User;
|
56
|
55
|
import com.dmdirc.logger.ErrorLevel;
|
57
|
56
|
import com.dmdirc.parser.common.AwayState;
|
58
|
57
|
import com.dmdirc.parser.common.CallbackManager;
|
|
@@ -220,11 +219,7 @@ public class ServerEventHandler extends EventHandler implements
|
220
|
219
|
final String format = EventUtils.postDisplayable(eventBus, event, "privateCTCP");
|
221
|
220
|
owner.doNotification(format, owner.getParser().get().getClient(host), type, message);
|
222
|
221
|
if (!event.isHandled()) {
|
223
|
|
- owner.sendCTCPReply(
|
224
|
|
- owner.getUser(host)
|
225
|
|
- .map(User::getNickname)
|
226
|
|
- .orElseThrow(() -> new IllegalStateException("Couldn't get nickname")),
|
227
|
|
- type, message);
|
|
222
|
+ owner.sendCTCPReply(owner.getUser(host).getNickname(), type, message);
|
228
|
223
|
}
|
229
|
224
|
}
|
230
|
225
|
|