]> git.eshelyaron.com Git - emacs.git/commitdiff
New rcirc command rcirc-cmd-invite
authorLeo Liu <sdl.web@gmail.com>
Thu, 8 Sep 2011 15:25:37 +0000 (23:25 +0800)
committerLeo Liu <sdl.web@gmail.com>
Thu, 8 Sep 2011 15:25:37 +0000 (23:25 +0800)
See: http://debbugs.gnu.org/9453

lisp/ChangeLog
lisp/net/rcirc.el

index 6d64950d64bd6110802c082a354efb341c769066..74aae97943db6ef8dc9d9839ab78525da6229a92 100644 (file)
@@ -1,3 +1,7 @@
+2011-09-08  Leo Liu  <sdl.web@gmail.com>
+
+       * net/rcirc.el (rcirc-cmd-invite): New rcirc command.  (Bug#9453)
+
 2011-09-08  Juri Linkov  <juri@jurta.org>
 
        * progmodes/compile.el (compilation-environment): Make it
index 51a087bc0843ecdd6b9d9df575fcd7a4e0e6cf52..6a912cd6273ecbf2e719b62583e4ecae365f10ba 100644 (file)
@@ -2141,6 +2141,16 @@ CHANNELS is a comma- or space-separated string of channel names."
       (dolist (b buffers) ;; order the new channel buffers in the buffer list
         (switch-to-buffer b)))))
 
+(defun-rcirc-command invite (nick-channel)
+  "Invite NICK to CHANNEL."
+  (interactive (list
+               (concat
+                (completing-read "Invite nick: "
+                                 (with-rcirc-server-buffer rcirc-nick-table))
+                " "
+                (read-string "Channel: "))))
+  (rcirc-send-string process (concat "INVITE " nick-channel)))
+
 ;; TODO: /part #channel reason, or consider removing #channel altogether
 (defun-rcirc-command part (channel)
   "Part CHANNEL."