global_available() && $this->user->data['user_jabber']); } /** * Is this method available at all? * This is checked before notifications are sent */ public function global_available() { return ($this->config['jab_enable'] && @extension_loaded('xml')); } public function notify() { if (!$this->global_available()) { return; } return $this->notify_using_messenger(NOTIFY_IM, 'short/'); } }