2004-11-05 Daiki Ueno <ueno@unixuser.org>
+ * riece-alias.el (riece-alias-abbrev-atmark): Don't append "@" to
+ a channel on default server.
+
+2004-11-05 Daiki Ueno <ueno@unixuser.org>
+
* riece-alias.el (riece-alias-use-atmark): New user option. If
this option enabled, atmark "@" will be used to separate prefix
and server. (e.g. "#riece@server")
(server (substring string (match-end 0))))
(concat (riece-alias-escape-atmark prefix) "@"
(riece-alias-escape-atmark server)))
- (concat (riece-alias-escape-atmark string) "@")))
+ (riece-alias-escape-atmark string)))
(defun riece-alias-expand-atmark (string)
(let ((index 0)
index (+ (match-beginning 0) (/ length 2)))
(unless (zerop (% length 2))
(setq prefix (substring string 0 index))))
- (setq server (substring string index)
- index 0)
- (if (equal server "")
- prefix
- (while (string-match "@@" server index)
- (setq server (replace-match "@" nil nil server)
- index (1- (match-end 0))))
- (concat prefix " " server))))
+ (if (null prefix)
+ string
+ (setq server (substring string index)
+ index 0)
+ (if (equal server "")
+ (while (string-match "@@" server index)
+ (setq server (replace-match "@" nil nil server)
+ index (1- (match-end 0))))
+ (concat prefix " " server)))))
(defun riece-alias-abbrev-identity-string (string)
(if riece-alias-enable-percent-hack