about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/profanity.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 6f1da902..39eb228b 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -452,28 +452,28 @@ _handle_idle_time()
 
             // handle away mode
             if (strcmp(prefs_get_string(PREF_AUTOAWAY_MODE), "away") == 0) {
-                presence_update(CONTACT_AWAY, prefs_get_string(PREF_AUTOAWAY_MESSAGE), 0);
+                presence_update(RESOURCE_AWAY, prefs_get_string(PREF_AUTOAWAY_MESSAGE), 0);
                 if (prefs_get_string(PREF_AUTOAWAY_MESSAGE) != NULL) {
                     int pri =
                         accounts_get_priority_for_presence_type(jabber_get_account_name(),
-                            CONTACT_AWAY);
+                            RESOURCE_AWAY);
                     cons_show("Idle for %d minutes, status set to away (priority %d), \"%s\".",
                         prefs_get_autoaway_time(), pri, prefs_get_string(PREF_AUTOAWAY_MESSAGE));
-                    title_bar_set_status(RESOURCE_AWAY);
+                    title_bar_set_status(CONTACT_AWAY);
                     win_current_page_off();
                 } else {
                     int pri =
                         accounts_get_priority_for_presence_type(jabber_get_account_name(),
-                            CONTACT_AWAY);
+                            RESOURCE_AWAY);
                     cons_show("Idle for %d minutes, status set to away (priority %d).",
                         prefs_get_autoaway_time(), pri);
-                    title_bar_set_status(RESOURCE_AWAY);
+                    title_bar_set_status(CONTACT_AWAY);
                     win_current_page_off();
                 }
 
             // handle idle mode
             } else if (strcmp(prefs_get_string(PREF_AUTOAWAY_MODE), "idle") == 0) {
-                presence_update(CONTACT_ONLINE,
+                presence_update(RESOURCE_ONLINE,
                     prefs_get_string(PREF_AUTOAWAY_MESSAGE), idle_ms / 1000);
             }
         }
@@ -485,16 +485,16 @@ _handle_idle_time()
             // handle check
             if (prefs_get_boolean(PREF_AUTOAWAY_CHECK)) {
                 if (strcmp(prefs_get_string(PREF_AUTOAWAY_MODE), "away") == 0) {
-                    presence_update(CONTACT_ONLINE, NULL, 0);
+                    presence_update(RESOURCE_ONLINE, NULL, 0);
                     int pri =
                         accounts_get_priority_for_presence_type(jabber_get_account_name(),
-                            CONTACT_ONLINE);
+                            RESOURCE_ONLINE);
                     cons_show("No longer idle, status set to online (priority %d).", pri);
-                    title_bar_set_status(RESOURCE_ONLINE);
+                    title_bar_set_status(CONTACT_ONLINE);
                     win_current_page_off();
                 } else if (strcmp(prefs_get_string(PREF_AUTOAWAY_MODE), "idle") == 0) {
-                    presence_update(CONTACT_ONLINE, NULL, 0);
-                    title_bar_set_status(RESOURCE_ONLINE);
+                    presence_update(RESOURCE_ONLINE, NULL, 0);
+                    title_bar_set_status(CONTACT_ONLINE);
                 }
             }
         }
> 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273