Commits

Christian Kaula  committed 83d3b6a

added check for required confs

  • Participants
  • Parent commits d9cfe04

Comments (0)

Files changed (1)

 	}
 
 	protected function XMPPNotify($message) {
+		// make sure we got all needed options
+		if (
+			!C('Plugins.GlobalNotify.XMPP.Host')
+			|| !C('Plugins.GlobalNotify.XMPP.Port', 5222)
+			|| !C('Plugins.GlobalNotify.XMPP.User')
+			|| !C('Plugins.GlobalNotify.XMPP.Pass')
+			|| !C('Plugins.GlobalNotify.XMPP.Resource', 'xmppphp')
+		) {
+			return;
+		}
 		$jids = $this->GetJIDs();
 		
 		$conn = new XMPPHP_XMPP(