From: Magnus H. <leg...@us...> - 2015-10-25 22:46:41
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "emacs-jabber". The branch, master has been updated via f2aaf7919d2a179e8a541761cad0adbba2f31331 (commit) from 20663ad928f0690ff0030c1a0d991b35d1d059ce (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit f2aaf7919d2a179e8a541761cad0adbba2f31331 Author: Magnus Henoch <mag...@gm...> Date: Sun Oct 25 22:32:34 2015 +0000 Check entered JID in jabber-connect Without this check, we would connect as "nil@nil" when given empty input for the JID. diff --git a/jabber-core.el b/jabber-core.el index 1a44e8a..0306293 100644 --- a/jabber-core.el +++ b/jabber-core.el @@ -192,6 +192,10 @@ With double prefix argument, specify more connection details." (entry (assoc jid jabber-account-list)) (alist (cdr entry)) password network-server port connection-type registerp) + (when (zerop (length jid)) + (error "No JID specified")) + (unless (jabber-jid-username jid) + (error "Missing username part in JID")) (when entry ;; If the user entered the JID of one of the preconfigured ;; accounts, use that data. ----------------------------------------------------------------------- Summary of changes: jabber-core.el | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) hooks/post-receive -- emacs-jabber |