Added groupchat logs

closes #168
This commit is contained in:
James Booth
2013-05-05 00:16:10 +01:00
parent c1cf0b433e
commit 8c5866ff52
7 changed files with 149 additions and 1 deletions

View File

@@ -259,6 +259,12 @@ prof_handle_room_message(const char * const room_jid, const char * const nick,
{
ui_room_message(room_jid, nick, message);
ui_current_page_off();
if (prefs_get_boolean(PREF_GRLOG)) {
Jid *jid = jid_create(jabber_get_jid());
groupchat_log_chat(jid->barejid, room_jid, nick, message);
jid_destroy(jid);
}
}
void
@@ -560,6 +566,7 @@ _init(const int disable_tls, char *log_level)
log_info("Starting Profanity (%s)...", PACKAGE_VERSION);
}
chat_log_init();
groupchat_log_init();
prefs_load();
accounts_load();
gchar *theme = prefs_get_string(PREF_THEME);