Tweaked the order of removal.

fix-message-formatting
Danny van Heumen 12 years ago
parent eda7a92539
commit cd9ef7c326

@ -817,11 +817,11 @@ public void onChannelPart(ChanPartMessage msg)
if (isMe(msg.getSource()))
{
IrcStack.this.irc.deleteListener(this);
IrcStack.this.joined.remove(this.chatroom);
IrcStack.this.provider.getMUC().fireLocalUserPresenceEvent(
this.chatroom,
LocalUserChatRoomPresenceChangeEvent.LOCAL_USER_LEFT, null);
IrcStack.this.irc.deleteListener(this);
IrcStack.this.joined.remove(this.chatroom);
}
else
{
@ -853,12 +853,12 @@ public void onChannelKick(ChannelKick msg)
String kickedUser = msg.getKickedNickname();
if (isMe(kickedUser))
{
IrcStack.this.irc.deleteListener(this);
IrcStack.this.joined.remove(this.chatroom);
IrcStack.this.provider.getMUC().fireLocalUserPresenceEvent(
this.chatroom,
LocalUserChatRoomPresenceChangeEvent.LOCAL_USER_KICKED,
msg.getText());
IrcStack.this.irc.deleteListener(this);
IrcStack.this.joined.remove(this.chatroom);
}
else
{

Loading…
Cancel
Save