Support multiple values in the icqnick bbdb field.
[emchat] / 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