* riece-irc.el (riece-irc-open-server): Send USER command with
authorueno <ueno>
Mon, 13 Dec 2004 23:54:02 +0000 (23:54 +0000)
committerueno <ueno>
Mon, 13 Dec 2004 23:54:02 +0000 (23:54 +0000)
riece-username if set.
* riece-server.el (riece-server-keyword-map): Bind :realname.
* riece-options.el (riece-realname): Rename from riece-username.
(riece-username): New user option.

lisp/ChangeLog
lisp/riece-irc.el
lisp/riece-options.el
lisp/riece-server.el

index 51cf921..44d2761 100644 (file)
@@ -1,5 +1,13 @@
 2004-12-13  Daiki Ueno  <ueno@unixuser.org>
 
+       * riece-irc.el (riece-irc-open-server): Send USER command with
+       riece-username if set.
+       * riece-server.el (riece-server-keyword-map): Bind :realname.
+       * riece-options.el (riece-realname): Rename from riece-username.
+       (riece-username): New user option.
+
+2004-12-13  Daiki Ueno  <ueno@unixuser.org>
+
        * riece-display.el (riece-update-channel-list-indicator):
        Normalize modeline indicator.
 
index 4126e7d..faa4c56 100644 (file)
                                       (format "PASS %s\r\n" password)))
        (riece-process-send-string process
                                   (format "USER %s * * :%s\r\n"
-                                          (user-real-login-name)
-                                          (or username
+                                          (if (and username
+                                                   (not (string-match
+                                                         "[^\0\r\n @]"
+                                                         username)))
+                                              username
+                                            (user-real-login-name))
+                                          (or realname
+                                              username
                                               "No information given")))
        (riece-process-send-string process (format "NICK %s\r\n" nickname))
        (with-current-buffer (process-buffer process)
index 48d78a2..5d15c16 100644 (file)
@@ -196,12 +196,17 @@ way is to put Riece variables on .emacs or file loaded from there."
                (const :tag "No" nil))
   :group 'riece-server)
 
-(defcustom riece-username (or (getenv "IRCNAME")
-                             user-full-name)
+(defcustom riece-username nil
   "Your user name."
   :type 'string
   :group 'riece-server)
 
+(defcustom riece-realname (or (getenv "IRCNAME")
+                             user-full-name)
+  "Your real name."
+  :type 'string
+  :group 'riece-server)
+
 (defcustom riece-nickname (or (getenv "IRCNICK")
                              (user-real-login-name))
   "Your nickname."
index 04ab199..2defd70 100644 (file)
@@ -36,6 +36,7 @@
       (:service 6667)
       (:nickname riece-nickname)
       (:username riece-username)
+      (:realname riece-realname)
       (:password)
       (:function riece-default-open-connection-function)
       (:coding riece-default-coding-system))