diff options
author | James Booth <boothj5@gmail.com> | 2014-01-12 02:15:16 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-12 02:15:16 +0000 |
commit | 264fc55aa22d0069d0031a97c56afd5f86df83c3 (patch) | |
tree | 15874d0a439c8823a53bc4d298b0aae1679829c7 /src/server_events.c | |
parent | 4e97c1e460d150b0cde6d8e35d8caf7bcf959a71 (diff) | |
download | profani-tty-264fc55aa22d0069d0031a97c56afd5f86df83c3.tar.gz |
Added conditionals to makefile for otr support
Diffstat (limited to 'src/server_events.c')
-rw-r--r-- | src/server_events.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server_events.c b/src/server_events.c index 5e478a51..792415be 100644 --- a/src/server_events.c +++ b/src/server_events.c @@ -28,7 +28,9 @@ #include "config/preferences.h" #include "roster_list.h" #include "ui/ui.h" +#ifdef HAVE_LIBOTR #include "otr.h" +#endif void handle_error_message(const char *from, const char *err_msg) @@ -49,7 +51,9 @@ void handle_login_account_success(char *account_name) { ProfAccount *account = accounts_get_account(account_name); +#ifdef HAVE_LIBOTR otr_on_connect(account); +#endif resource_presence_t resource_presence = accounts_get_login_presence(account->name); contact_presence_t contact_presence = contact_presence_from_resource_presence(resource_presence); cons_show_login_success(account); |