Do not send presence when in groupchat

This commit is contained in:
James Booth
2012-11-05 21:48:13 +00:00
parent 2f6361a578
commit 83834b96ae
4 changed files with 18 additions and 3 deletions

View File

@@ -43,6 +43,7 @@
#include "log.h"
#include "preferences.h"
#include "release.h"
#include "room_chat.h"
#include "ui.h"
#define CONS_WIN_TITLE "_cons"
@@ -196,6 +197,16 @@ win_in_chat(void)
(strcmp(_wins[_curr_prof_win].from, "") != 0));
}
int
win_in_groupchat(void)
{
if (room_jid_is_room_chat(_wins[_curr_prof_win].from)) {
return 1;
} else {
return 0;
}
}
char *
win_get_recipient(void)
{