From 180e55dea00043b9325e6e375c3fd743d7027b91 Mon Sep 17 00:00:00 2001 From: kaoru Date: Sun, 30 Jan 2005 07:29:52 +0000 Subject: [PATCH] * riece-display.el (riece-display-connect-signals): Check nick or channel, before call `riece-channel-get-users'. --- lisp/ChangeLog | 5 +++++ lisp/riece-display.el | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e9caaf6..7d6680e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2005-01-30 TAKAHASHI Kaoru + + * riece-display.el (riece-display-connect-signals): Check nick or + channel, before call `riece-channel-get-users'. + 2004-12-15 Yoichi NAKAYAMA * riece-addon.el (riece-command-enable-addon): Fixed. diff --git a/lisp/riece-display.el b/lisp/riece-display.el index 82af80f..5a16cdf 100644 --- a/lisp/riece-display.el +++ b/lisp/riece-display.el @@ -125,11 +125,13 @@ Local to the buffer in `riece-buffer-list'.") (riece-identity-server riece-current-channel)) (riece-with-server-buffer (riece-identity-server riece-current-channel) - (riece-identity-assoc - (riece-identity-prefix (nth 1 (riece-signal-args signal))) - (riece-channel-get-users (riece-identity-prefix - riece-current-channel)) - t))))) + (when (riece-channel-p (riece-identity-prefix + riece-current-channel)) + (riece-identity-assoc + (riece-identity-prefix (nth 1 (riece-signal-args signal))) + (riece-channel-get-users (riece-identity-prefix + riece-current-channel)) + t)))))) (riece-connect-signal 'user-renamed (lambda (signal handback) -- 1.7.10.4