aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2011-09-08 23:25:37 +0800
committerLeo Liu2011-09-08 23:25:37 +0800
commit567457e31a7a87292d39437281a3ab112b8b5abd (patch)
tree93c5da68f64c65e6f94113506e34dc5207ca7e53
parent97f05794552e8415ccc7522017f4dff06f84d1a4 (diff)
downloademacs-567457e31a7a87292d39437281a3ab112b8b5abd.tar.gz
emacs-567457e31a7a87292d39437281a3ab112b8b5abd.zip
New rcirc command rcirc-cmd-invite
See: http://debbugs.gnu.org/9453
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/rcirc.el10
2 files changed, 14 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6d64950d64b..74aae97943d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-09-08 Leo Liu <sdl.web@gmail.com>
2
3 * net/rcirc.el (rcirc-cmd-invite): New rcirc command. (Bug#9453)
4
12011-09-08 Juri Linkov <juri@jurta.org> 52011-09-08 Juri Linkov <juri@jurta.org>
2 6
3 * progmodes/compile.el (compilation-environment): Make it 7 * progmodes/compile.el (compilation-environment): Make it
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 51a087bc084..6a912cd6273 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -2141,6 +2141,16 @@ CHANNELS is a comma- or space-separated string of channel names."
2141 (dolist (b buffers) ;; order the new channel buffers in the buffer list 2141 (dolist (b buffers) ;; order the new channel buffers in the buffer list
2142 (switch-to-buffer b))))) 2142 (switch-to-buffer b)))))
2143 2143
2144(defun-rcirc-command invite (nick-channel)
2145 "Invite NICK to CHANNEL."
2146 (interactive (list
2147 (concat
2148 (completing-read "Invite nick: "
2149 (with-rcirc-server-buffer rcirc-nick-table))
2150 " "
2151 (read-string "Channel: "))))
2152 (rcirc-send-string process (concat "INVITE " nick-channel)))
2153
2144;; TODO: /part #channel reason, or consider removing #channel altogether 2154;; TODO: /part #channel reason, or consider removing #channel altogether
2145(defun-rcirc-command part (channel) 2155(defun-rcirc-command part (channel)
2146 "Part CHANNEL." 2156 "Part CHANNEL."