(riece-irc-open-server): Send NICK before USER,
authorueno <ueno>
Tue, 15 Apr 2008 09:54:04 +0000 (09:54 +0000)
committerueno <ueno>
Tue, 15 Apr 2008 09:54:04 +0000 (09:54 +0000)
following the recommendation in "3.1 Connection Registration" of
RFC2812.

lisp/ChangeLog
lisp/riece-irc.el

index a8019b0..b65ab99 100644 (file)
@@ -1,3 +1,9 @@
+2008-04-15  Daiki Ueno  <ueno@unixuser.org>
+
+       * 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  <kasuga.toru@jp.fujitsu.com>
 
        * riece-irc.el (riece-irc-open-server): Encode realname when
index 349f89a..ce0c912 100644 (file)
@@ -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