rem: } else ptr->state = PS_ONLINE;
add: } else { ptr->state = PS_ONLINE; }  db_update_presentity(ptr);
context: void callback(str* _user, int state, void* data){	struct presentity* ptr;	int orig;	ptr = (struct presentity*)data;	orig = ptr->state;	if (state == 0) {		ptr->state = PS_OFFLINE;	} else ptr->state = PS_ONLINE;	if (orig != state) {		notify_watchers(ptr);	}}