]> code.delx.au - gnu-emacs/commitdiff
erc-pcomplete.el (pcomplete-erc-nicks): Fix bug#18771
authorl3thal <kwhite@gnu.org>
Sat, 7 Nov 2015 17:54:58 +0000 (12:54 -0500)
committerl3thal <kwhite@gnu.org>
Sat, 7 Nov 2015 17:54:58 +0000 (12:54 -0500)
lisp/erc/ChangeLog.2
lisp/erc/erc-pcomplete.el

index 8dce5084ec9057011362cc9915609026c540d884..80ee3bbbd093ab9a2c66cd780cb35362be9dd016 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-07  Kelvin White  <kwhite@gnu.org>
+
+       * erc-pcomplete.el (pcomplete-erc-nicks): Fix bug for tab complete
+       (bug#18771)
+
 2015-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * erc.el (erc-switch-to-buffer): Fix last change (bug#20187).
index e46ac68b2594f76c08f54b97ca794d2196a4c89d..686a3a8e1d0f2d465c24497992da1f3d22536265 100644 (file)
@@ -225,9 +225,10 @@ If optional argument IGNORE-SELF is non-nil, don't return the current nick."
                  (erc-get-channel-user-list)))
         (nicks nil))
     (dolist (user users)
-      (unless (and ignore-self
-                   (string= (erc-server-user-nickname (car user))
-                            (erc-current-nick)))
+      (unless (or (not user) 
+                  (and ignore-self
+                       (string= (erc-server-user-nickname (car user))
+                                (erc-current-nick))))
         (setq nicks (cons (concat (erc-server-user-nickname (car user))
                                   postfix)
                           nicks))))