Skip to content

Instantly share code, notes, and snippets.

@fakedrake
Created September 22, 2012 17:04
Show Gist options
  • Save fakedrake/3766783 to your computer and use it in GitHub Desktop.
Save fakedrake/3766783 to your computer and use it in GitHub Desktop.
;; I hope this works
(defun channel-names (channel)
(when (erc-channel-p channel)
(with-current-buffer channel
(erc-get-channel-nickname-list))))
(defun intersect-lists (head &rest lists)
"Intersect any number of lists"
(if (consp lists)
(let ((operand (car lists))
(rest (cdr lists)))
(apply 'intersect-lists (intersection head operand) rest))
head))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment