diff options
author | James Booth <boothj5@gmail.com> | 2013-05-05 00:16:10 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-05-05 00:16:10 +0100 |
commit | 8c5866ff52d38cecdf9e52f0d9f30c53bc1c3c03 (patch) | |
tree | e06b942e3f61ab8cd14c1389fc2304a827355b4a /src/profanity.c | |
parent | c1cf0b433eb13823509b3de2f3e910c3fc009af7 (diff) | |
download | profani-tty-8c5866ff52d38cecdf9e52f0d9f30c53bc1c3c03.tar.gz |
Added groupchat logs
closes #168
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c index ad646b85..f8441bdb 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -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); |