Source

erc / erc-menu.el

Diff from to

File erc-menu.el

 ;; erc-menu.el -- Menu-bar definitions for the Emacs IRC Client
 
-;; Copyright (C) 2002  Free Software Foundation, Inc.
+;; Copyright (C) 2002, 2003, 2004  Free Software Foundation, Inc.
 
 ;; Author: Mario Lang <mlang@delysid.org>
 ;; Keywords: comm, processes, menu
 	["Connect to server..." erc-select t]
 	["Disconnect from server..." erc-quit-server erc-connected]
 	"-"
-	["List channels..." erc-cmd-LIST erc-connected]
+	["List channels..." erc-cmd-LIST
+	 (and erc-connected (fboundp 'erc-cmd-LIST))]
 	["Join channel..." erc-join-channel erc-connected]
 	["Start a query..." erc-cmd-QUERY erc-connected]
 	"-"