Fixed.
authorueno <ueno>
Wed, 11 Jun 2003 02:22:53 +0000 (02:22 +0000)
committerueno <ueno>
Wed, 11 Jun 2003 02:22:53 +0000 (02:22 +0000)
lisp/riece-identity.el

index 672d1b0..9ec6475 100644 (file)
@@ -167,9 +167,9 @@ take server names into account."
         (encoded
          (riece-encode-identity decoded)))
     (if (and (not (string-match "[ ,]" decoded))
-            (string-match "[ ,]" encoded)
+            (string-match "[ ,]" (riece-identity-prefix encoded))
             (not (y-or-n-p (format "The encoded channel name contains illegal character \"%s\".  continue? "
-                                   (match-string 0 encoded)))))
+                                   (match-string 0 (riece-identity-prefix encoded))))))
        (error "Invalid channel name!"))
     encoded))