Skip to content

Commit

Permalink
If the jid is already set in the conf file, show it before the passwo…
Browse files Browse the repository at this point in the history
…rd prompt
  • Loading branch information
Anis ELLEUCH committed Dec 12, 2014
1 parent 60c672a commit 089900b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extensions/login.scm
Expand Up @@ -20,10 +20,11 @@
;(use-modules (ice-9 readline))
;(activate-readline)

(and (string=? (ft-get-jid) "")
(if (string=? (ft-get-jid) "")
(ft-set-jid! (sans-surrounding-whitespace
(and (display "Jabber ID: ")
(read-line)))))
(read-line))))
(display (string-append "[" (ft-get-jid) "] ")))

;; check if both user and domain are present
(if (not (string-rindex (ft-get-jid) #\@))
Expand Down

0 comments on commit 089900b

Please sign in to comment.