* liece-misc.el (liece-server-host):
When `liece-server' is string return host only.
(defmacro liece-server-host ()
'(if (listp liece-server)
(plist-get liece-server ':host)
- liece-server))
+ (if (or (string-match "^\\[\\([^]]+\\)\\]:?[0-9]*" liece-server)
+ (string-match "^\\([^:]+\\):?[0-9]*" liece-server))
+ (match-string 1 liece-server)
+ liece-server)))
(defmacro liece-clean-hostname (hostname)
"Return the arg HOSTNAME, but if is a dotted-quad, put brackets around it."