aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2012-03-18 11:27:28 +0800
committerLeo Liu2012-03-18 11:27:28 +0800
commit153609342a86a37e18d6be8c8f28c96efb4d03c7 (patch)
tree9951e4426af2168db94040eda83f87b15ab16a41
parentb59af54981b4f7e1dd59ed8d477eced356bf5b05 (diff)
downloademacs-153609342a86a37e18d6be8c8f28c96efb4d03c7.tar.gz
emacs-153609342a86a37e18d6be8c8f28c96efb4d03c7.zip
* lisp/net/rcirc.el (rcirc-cmd-quit): Allow quiting all servers with
prefix.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/rcirc.el18
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9bdfd5c1b73..06b273fa178 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-03-18 Leo Liu <sdl.web@gmail.com>
2
3 * net/rcirc.el (rcirc-cmd-quit): Allow quiting all servers with
4 prefix.
5
12012-03-17 Eli Zaretskii <eliz@gnu.org> 62012-03-17 Eli Zaretskii <eliz@gnu.org>
2 7
3 * textmodes/ispell.el (ispell-skip-tib, ispell-keep-choices-win) 8 * textmodes/ispell.el (ispell-skip-tib, ispell-keep-choices-win)
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 1c74e6190dc..d09b6aa831f 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -2165,13 +2165,17 @@ CHANNELS is a comma- or space-separated string of channel names."
2165 (let ((channel (if (> (length channel) 0) channel target))) 2165 (let ((channel (if (> (length channel) 0) channel target)))
2166 (rcirc-send-string process (concat "PART " channel " :" rcirc-id-string)))) 2166 (rcirc-send-string process (concat "PART " channel " :" rcirc-id-string))))
2167 2167
2168(defun-rcirc-command quit (reason) 2168(defun-rcirc-command quit (reason all)
2169 "Send a quit message to server with REASON." 2169 "Send a quit message to server with REASON.
2170 (interactive "sQuit reason: ") 2170When called with prefix, quit all servers."
2171 (rcirc-send-string process (concat "QUIT :" 2171 (interactive "sQuit reason: \nP")
2172 (if (not (zerop (length reason))) 2172 (dolist (p (if all
2173 reason 2173 (rcirc-process-list)
2174 rcirc-id-string)))) 2174 (list process)))
2175 (rcirc-send-string p (concat "QUIT :"
2176 (if (not (zerop (length reason)))
2177 reason
2178 rcirc-id-string)))))
2175 2179
2176(defun-rcirc-command nick (nick) 2180(defun-rcirc-command nick (nick)
2177 "Change nick to NICK." 2181 "Change nick to NICK."