diff --git a/src/com/dmdirc/Query.java b/src/com/dmdirc/Query.java index 856a61994..e90b3adbc 100644 --- a/src/com/dmdirc/Query.java +++ b/src/com/dmdirc/Query.java @@ -202,7 +202,7 @@ public void reregister() { @Override public void onNickChanged(final Parser parser, final Date date, final ClientInfo client, final String oldNick) { - if (oldNick.equals(getNickname())) { + if (client.getNickname().equals(getNickname())) { final CallbackManager callbackManager = connection.getParser().get().getCallbackManager(); callbackManager.delCallback(PrivateActionListener.class, this);