Traces and incorrect usage of chatroom.getName().

fix-message-formatting
Danny van Heumen 12 years ago
parent 56e172c989
commit 6af853aefd

@ -310,6 +310,7 @@ public String getNick()
*/ */
public void setUserNickname(String nick) public void setUserNickname(String nick)
{ {
LOGGER.trace("Setting user's nick name to " + nick);
if (this.connectionState == null) if (this.connectionState == null)
{ {
this.params.setNickname(nick); this.params.setNickname(nick);
@ -333,8 +334,9 @@ public void setSubject(ChatRoomIrcImpl chatroom, String subject)
"Please connect to an IRC server first."); "Please connect to an IRC server first.");
if (chatroom == null) if (chatroom == null)
throw new IllegalArgumentException("Cannot have a null chatroom"); throw new IllegalArgumentException("Cannot have a null chatroom");
LOGGER.trace("Setting chat room topic to '" + subject + "'");
this.irc this.irc
.changeTopic(chatroom.getName(), subject == null ? "" : subject); .changeTopic(chatroom.getIdentifier(), subject == null ? "" : subject);
} }
/** /**

Loading…
Cancel
Save