global_available() && $this->user->data['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 parent::notify(); } }