accepting a connection.
(riece-command-dcc-send): Use riece-completing-read-identity; take
an identity object in the 1st argument.
* riece-ndcc.el (riece-command-dcc-send): Use
riece-completing-read-identity; take an identity object in the 1st
argument.
2003-10-22 Daiki Ueno <ueno@unixuser.org>
+ * riece-rdcc.el (riece-rdcc-send-program): Flush $stdout before
+ accepting a connection.
+ (riece-command-dcc-send): Use riece-completing-read-identity; take
+ an identity object in the 1st argument.
+ * riece-ndcc.el (riece-command-dcc-send): Use
+ riece-completing-read-identity; take an identity object in the 1st
+ argument.
+
* riece-display.el (riece-update-buffers): Run
riece-update-buffer-hook.
(let ((completion-ignore-case t))
(unless riece-ndcc-server-address
(error "Set riece-ndcc-server-address to your host"))
- (list (completing-read
+ (list (riece-completing-read-identity
"User: "
- (mapcar #'list (riece-get-users-on-server)))
+ (riece-get-users-on-server (riece-current-server-name)))
(expand-file-name (read-file-name "File: ")))))
(let* (selective-display
(coding-system-for-read 'binary)
:sentinel 'riece-ndcc-server-sentinel))
(riece-send-string
(format "PRIVMSG %s :\1DCC SEND %s %s %d %d\1\r\n"
- user (file-name-nondirectory file)
+ (riece-identity-prefix user)
+ (file-name-nondirectory file)
(riece-ndcc-encode-address riece-ndcc-server-address)
(nth 1 (process-contact process))
(nth 7 (file-attributes file))))))
end
server = TCPServer.new(address, 0)
puts(\"#{server.addr[3].split(/\\./).collect{|c| c.to_i}.pack('CCCC').unpack('N')[0]} #{server.addr[1]}\")
+$stdout.flush
session = server.accept
if session
total = 0
(defun riece-command-dcc-send (user file)
(interactive
(let ((completion-ignore-case t))
- (list (completing-read
+ (list (riece-completing-read-identity
"User: "
- (mapcar #'list (riece-get-users-on-server)))
+ (riece-get-users-on-server (riece-current-server-name)))
(expand-file-name (read-file-name "File: ")))))
(let* ((process-connection-type nil)
(process (start-process "DCC" (generate-new-buffer " *DCC*")
(set-process-sentinel process #'riece-rdcc-server-sentinel)
(riece-send-string
(format "PRIVMSG %s :\1DCC SEND %s %s %s %d\1\r\n"
- user (file-name-nondirectory file)
+ (riece-identity-prefix user)
+ (file-name-nondirectory file)
address port
riece-rdcc-request-size)))))))