Leaving chat rooms on /close

This commit is contained in:
James Booth
2012-11-06 00:00:25 +00:00
parent 517bc30360
commit fb3d7a47d2
5 changed files with 78 additions and 19 deletions

View File

@@ -1082,6 +1082,10 @@ _cmd_tiny(const char * const inp, struct cmd_help_t help)
static gboolean
_cmd_close(const char * const inp, struct cmd_help_t help)
{
if (win_in_groupchat()) {
char *room_jid = win_get_recipient();
jabber_leave_chat_room(room_jid);
}
if (win_in_chat()) {
if (prefs_get_states()) {