Support multiple values in the icqnick bbdb field.
authorSteve Youngs <steve@emchat.org>
Wed, 27 May 2015 04:50:47 +0000 (14:50 +1000)
committerSteve Youngs <steve@emchat.org>
Wed, 27 May 2015 04:50:47 +0000 (14:50 +1000)
This makes it possible to have a bbdb record that has multiple ICQ nicks
for those folks who like to sport multiple ICQ a/c's.

* emchat-buddy.el (emchat-buddy-show-xface): Support multiple
icqnicks.

Signed-off-by: Steve Youngs <steve@emchat.org>
emchat-buddy.el

index 9246dc3..357a834 100644 (file)
@@ -152,7 +152,9 @@ Returns a string."
                  nick (bbdb-record-getprop record 'icqnick)
                  face (bbdb-record-getprop record 'face)
                  cface (bbdb-record-getprop record 'cface))
-           (when (and (equal nick alias)
+           (if (stringp nick)
+               (setq nick (split-string nick ",\\| " 'omitnulls)))
+           (when (and (member alias nick)
                       (or face cface))
              ;; put some whitespace between the image and the name
              (set-extent-begin-glyph