Fixed.
authorueno <ueno>
Tue, 15 Apr 2008 10:25:41 +0000 (10:25 +0000)
committerueno <ueno>
Tue, 15 Apr 2008 10:25:41 +0000 (10:25 +0000)
lisp/riece-irc.el

index 004f0bc..a2c158e 100644 (file)
        (unless realname
          (setq realname (riece-mcat "No information given")))
        (if coding
-           (setq realname (encode-coding-string realname coding)))
+           (setq realname (encode-coding-string realname
+                                                (if (consp coding)
+                                                    (cdr coding)
+                                                  coding))))
        (riece-process-send-string process
                                   (format "USER %s * * :%s\r\n"
                                           (or username