* lisp/erc/erc.el (erc-shorten-server-name): Silence compiler warning.
This commit is contained in:
parent
471b6c163f
commit
3a6051578b
1 changed files with 4 additions and 4 deletions
|
@ -6244,11 +6244,11 @@ This should be a string with substitution variables recognized by
|
|||
:group 'erc-mode-line-and-header
|
||||
:type 'string)
|
||||
|
||||
(defun erc-shorten-server-name (server-name)
|
||||
"Shorten SERVER-NAME according to `erc-common-server-suffixes'."
|
||||
(if (stringp server-name)
|
||||
(defun erc-shorten-server-name (server)
|
||||
"Shorten SERVER name according to `erc-common-server-suffixes'."
|
||||
(if (stringp server)
|
||||
(with-temp-buffer
|
||||
(insert server-name)
|
||||
(insert server)
|
||||
(let ((alist erc-common-server-suffixes))
|
||||
(while alist
|
||||
(goto-char (point-min))
|
||||
|
|
Loading…
Add table
Reference in a new issue