diff options
author | James Booth <boothj5@gmail.com> | 2015-05-07 23:23:45 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-07 23:23:45 +0100 |
commit | 0db7bcbdcdbc2039033b6c18d5610372969556bc (patch) | |
tree | 68316b54bd8303798ad4113c1b04ba7ed4315ac0 /src/profanity.c | |
parent | a2281dbccf9d1973e750f7b0ad72d132ed5c4fac (diff) | |
parent | d853284f92fb93067b724446f256cefcccd4b67c (diff) | |
download | profani-tty-0db7bcbdcdbc2039033b6c18d5610372969556bc.tar.gz |
Merge branch 'master' into openpgp
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/profanity.c b/src/profanity.c index 03559690..277fe4ad 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -66,6 +66,7 @@ #include "xmpp/xmpp.h" #include "ui/ui.h" #include "ui/windows.h" +#include "event/client_events.h" static void _check_autoaway(void); static void _init(const int disable_tls, char *log_level); @@ -175,12 +176,12 @@ _check_autoaway() // handle away mode if (strcmp(pref_autoaway_mode, "away") == 0) { - presence_send(RESOURCE_AWAY, pref_autoaway_message, 0); + cl_ev_presence_send(RESOURCE_AWAY, pref_autoaway_message, 0); ui_auto_away(); // handle idle mode } else if (strcmp(pref_autoaway_mode, "idle") == 0) { - presence_send(RESOURCE_ONLINE, pref_autoaway_message, idle_ms / 1000); + cl_ev_presence_send(RESOURCE_ONLINE, pref_autoaway_message, idle_ms / 1000); } prefs_free_string(pref_autoaway_message); @@ -194,10 +195,10 @@ _check_autoaway() // handle check if (prefs_get_boolean(PREF_AUTOAWAY_CHECK)) { if (strcmp(pref_autoaway_mode, "away") == 0) { - presence_send(RESOURCE_ONLINE, NULL, 0); + cl_ev_presence_send(RESOURCE_ONLINE, NULL, 0); ui_end_auto_away(); } else if (strcmp(pref_autoaway_mode, "idle") == 0) { - presence_send(RESOURCE_ONLINE, NULL, 0); + cl_ev_presence_send(RESOURCE_ONLINE, NULL, 0); ui_titlebar_presence(CONTACT_ONLINE); } } |