From 3bbafb08e0671b6995b3a386cc43c80dbc3e3f57 Mon Sep 17 00:00:00 2001 From: ueno Date: Tue, 15 Apr 2008 09:54:04 +0000 Subject: [PATCH] (riece-irc-open-server): Send NICK before USER, following the recommendation in "3.1 Connection Registration" of RFC2812. --- lisp/ChangeLog | 6 ++++++ lisp/riece-irc.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 1.7.10.4