* rcirc.el (rcirc-define-command): Update regular expression generator
(insert "\\`")
(when arguments
(dotimes (_ (1- (length arguments)))
- (insert "\\(?:\\(.+?\\)"))
- (insert "\\(?:[[:space:]]+\\(.*\\)\\)")
+ (insert "\\(?:\\(.+?\\)[[:space:]]+"))
(dotimes (i (1- (length arguments)))
- (when (< i optional)
- (insert "?"))
- (insert "\\)")))
+ (if (< i optional)
+ (insert "\\)?")
+ (insert "\\)"))))
+ (insert "\\(.*?\\)")
(insert "[[:space:]]*\\'")
(buffer-string)))
(argument (gensym))