| 787 is_our_resource = FALSE; |
787 is_our_resource = FALSE; |
| 788 } |
788 } |
| 789 |
789 |
| 790 if(!nick_change) { |
790 if(!nick_change) { |
| 791 if (is_our_resource) { |
791 if (is_our_resource) { |
| 792 if (kick) |
792 if (kick) { |
| 793 purple_conversation_write_message(PURPLE_CONVERSATION(chat->conv), presence->jid_from->resource, |
793 gchar *msg = g_strdup_printf("%s: %s", |
| 794 presence->status, PURPLE_MESSAGE_SYSTEM, time(NULL)); |
794 presence->jid_from->resource, |
| |
795 presence->status); |
| |
796 purple_conversation_write_system_message(PURPLE_CONVERSATION(chat->conv), msg, 0); |
| |
797 } |
| 795 |
798 |
| 796 purple_serv_got_chat_left(js->gc, chat->id); |
799 purple_serv_got_chat_left(js->gc, chat->id); |
| 797 jabber_chat_destroy(chat); |
800 jabber_chat_destroy(chat); |
| 798 } else { |
801 } else { |
| 799 purple_chat_conversation_remove_user(chat->conv, presence->jid_from->resource, |
802 purple_chat_conversation_remove_user(chat->conv, presence->jid_from->resource, |