(setcdr (assoc channel-name lirc-channel-list) users))
(defun lirc-add-channel-users (channel-name &rest users)
- (let ((current-users (lirc-channel-get-users channel-name)))
- (lirc-channel-set-users channel-name (append users current-users))))
+ (let ((current-users (lirc-get-channel-users channel-name)))
+ (lirc-set-channel-users channel-name (append users current-users))))
(defun lirc-del-channel-users (channel-name &rest users)
(let ((current-users (lirc-get-channel-users channel-name)))
(defun lirc-enter-string (string)
(if (string-prefix-p "/" string)
(pcase (substring string 1)
- (cmd-str
- (lirc-send-msg (lirc-msg nil nil cmd-str))))
- (error "Not implemented.")))
+ ((rx (: (let cmd-str (+ (not space))))
+ (opt
+ (: (+ " ")
+ (let params-str (+ anything)))))
+ (lirc-send-msg (lirc-msg nil nil
+ cmd-str
+ (if params-str
+ (split-string params-str)
+ nil)))))
+ (lirc-send-msg (lirc-msg nil nil "PRIVMSG" lirc-current-channel string))))
(defun lirc-enter ()
"Enter current contents of line after prompt."