Show
Ignore:
Timestamp:
02/08/09 19:33:28 (3 years ago)
Author:
Leo 'costela' Antunes <leo@…>
Children:
826d0d375e42d8e4018950dd84b37689b3f666fa
Parents:
d4640cf4f5580adc11efd1fb84eb4a429b7e3840
git-committer:
Leo 'costela' Antunes <leo@…> (02/08/09 19:33:28)
Message:

fix activation when auto-away is on

- add logic to avoid touching the status when auto-away is on
- bumped to 0.2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • awayonlock.c

    r7bfa81d r6b1d64a  
    2121#define PURPLE_PLUGINS 
    2222 
    23 #define AWAYONLOCK_VERSION "0.1" 
     23#define AWAYONLOCK_VERSION "0.2" 
    2424#define AWAYONLOCK_PLUGIN_ID "core-costela-awayonlock" 
    2525 
     
    5050        PurpleStatusPrimitive status_type = purple_savedstatus_get_type(status_current); 
    5151 
    52         if(screensaver_status && (status_type != PURPLE_STATUS_OFFLINE && status_type != PURPLE_STATUS_INVISIBLE)) { 
     52        if(screensaver_status && (status_type != PURPLE_STATUS_OFFLINE && status_type != PURPLE_STATUS_INVISIBLE) && ! purple_savedstatus_is_idleaway()) { 
    5353                status_saved = status_current; 
    5454                purple_debug(PURPLE_DEBUG_INFO, PACKAGE, N_("setting status as away and storing '%s'\n"), purple_savedstatus_get_title(status_saved));