Created
May 30, 2013 22:04
-
-
Save nicferrier/5681632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun rcirc-part-kill-buffer-hook (process cmd sender args text) | |
(when (equal cmd "PART") | |
(let ((channel-pair | |
(with-current-buffer (process-buffer process) | |
(assoc (car args) rcirc-buffer-alist)))) | |
(kill-buffer (cdr channel-pair))))) | |
(add-hook | |
'rcirc-receive-message-functions | |
'rcric-part-kill-buffer-hook) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment