* riece-yank.el (riece-command-yank): Take a 1st argument to send
authorOHASHI Akira <bg66@koka-in.org>
Tue, 9 Nov 2004 09:25:31 +0000 (09:25 +0000)
committerOHASHI Akira <bg66@koka-in.org>
Tue, 9 Nov 2004 09:25:31 +0000 (09:25 +0000)
messages as notice.

lisp/ChangeLog
lisp/riece-yank.el

index ba8517c..cdf12c9 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-09  OHASHI Akira  <bg66@koka-in.org>
+
+       * riece-yank.el (riece-command-yank): Take a 1st argument to send
+       messages as notice.
+
 2004-11-07  Daiki Ueno  <ueno@unixuser.org>
 
        * Riece: Version 1.0.5 released.
index c774980..862891c 100644 (file)
@@ -80,8 +80,8 @@ before/after the first/last non-blank line."
       (forward-line))
     (buffer-string)))
 
-(defun riece-command-yank (prefix)
-  (interactive "sPrefix: ")
+(defun riece-command-yank (arg prefix)
+  (interactive "P\nsPrefix: ")
   (when (or (not prefix)
            (string= prefix ""))
     (setq prefix " "))
@@ -95,7 +95,7 @@ before/after the first/last non-blank line."
     (when (y-or-n-p (format "Send \"%s\"\n? " kill))
       (mapcar
        (lambda (x) 
-        (riece-command-send-message (concat prefix x) nil)
+        (riece-command-send-message (concat prefix x) arg)
         ;; Without next line, you will be kicked out from ircd.
         ;; It may means "Don't send much data at once."
         (sit-for riece-yank-tick))