From: ueno Date: Tue, 15 Apr 2008 09:54:04 +0000 (+0000) Subject: (riece-irc-open-server): Send NICK before USER, X-Git-Tag: riece-5_0_0~31 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=3bbafb08e0671b6995b3a386cc43c80dbc3e3f57;p=elisp%2Friece.git (riece-irc-open-server): Send NICK before USER, following the recommendation in "3.1 Connection Registration" of RFC2812. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a8019b0..b65ab99 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2008-04-15 Daiki Ueno + + * riece-irc.el (riece-irc-open-server): Send NICK before USER, + following the recommendation in "3.1 Connection Registration" of + RFC2812. + 2008-04-04 春日 玄 KASUGA Toru * riece-irc.el (riece-irc-open-server): Encode realname when diff --git a/lisp/riece-irc.el b/lisp/riece-irc.el index 349f89a..ce0c912 100644 --- a/lisp/riece-irc.el +++ b/lisp/riece-irc.el @@ -82,6 +82,7 @@ (if password (riece-process-send-string process (format "PASS %s\r\n" password))) + (riece-process-send-string process (format "NICK %s\r\n" nickname)) (riece-process-send-string process (format "USER %s * * :%s\r\n" (or username @@ -89,7 +90,6 @@ (or (encode-coding-string realname coding) "No information given"))) - (riece-process-send-string process (format "NICK %s\r\n" nickname)) (with-current-buffer (process-buffer process) (setq riece-last-nickname riece-real-nickname riece-nick-accepted 'sent