1 --- src/autoaway.c_ 2011-03-23 09:55:01.176931000 +0300
2 +++ src/autoaway.c 2011-03-23 09:55:22.663597668 +0300
4 idle = kf_autoaway_get_idle ();
6 /* v- we have to be connected v- We are "Online" or "Free for chat" */
7 - if (kf_jabber_get_connected () && *enable_aa && *aa_status <= 1) {
8 + if (kf_jabber_get_connected () && enable_aa && *enable_aa && aa_status && *aa_status <= 1) {
9 if (idle > *aa_delay * 60 && idle < *axa_delay * 60 && state == KF_AUTOAWAY_NONE) {
11 kf_autoaway_set_presence (KF_AUTOAWAY_AWAY);