summaryrefslogtreecommitdiff
path: root/lisp/erc/erc-ibuffer.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/erc/erc-ibuffer.el')
-rw-r--r--lisp/erc/erc-ibuffer.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/erc/erc-ibuffer.el b/lisp/erc/erc-ibuffer.el
index 76c2d2b18b1..14ac36540a9 100644
--- a/lisp/erc/erc-ibuffer.el
+++ b/lisp/erc/erc-ibuffer.el
@@ -1,6 +1,6 @@
;;; erc-ibuffer.el --- ibuffer integration with ERC
-;; Copyright (C) 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
+;; Copyright (C) 2002, 2004, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Mario Lang <mlang@delysid.org>
;; Keywords: comm
@@ -158,8 +158,8 @@
(format "l %d" erc-channel-user-limit)
"")
")")
- (if (not (eq major-mode 'erc-mode))
- mode-name
+ (if (not (derived-mode-p 'erc-mode))
+ (format-mode-line mode-name nil nil (current-buffer))
"")))
(define-ibuffer-column erc-nick (:name "Nick")