Update rcirc-channel-p to RFC 2811

This commit is contained in:
Neale Pickett 2010-10-01 13:06:53 -06:00
parent 0a9e78132c
commit 126c060732
1 changed files with 1 additions and 2 deletions

View File

@ -1031,8 +1031,7 @@ If ALL is non-nil, update prompts in all IRC buffers."
"Return t if TARGET is a channel name." "Return t if TARGET is a channel name."
(and target (and target
(not (zerop (length target))) (not (zerop (length target)))
(or (eq (aref target 0) ?#) (or (member (aref target 0) '(?# ?& ?+ ?!)))))
(eq (aref target 0) ?&))))
(defun rcirc-kill-buffer-hook () (defun rcirc-kill-buffer-hook ()
"Part the channel when killing an rcirc buffer." "Part the channel when killing an rcirc buffer."