Skip to content

Instantly share code, notes, and snippets.

@Raynes
Created December 3, 2011 21:59
Show Gist options
  • Save Raynes/1428277 to your computer and use it in GitHub Desktop.
Save Raynes/1428277 to your computer and use it in GitHub Desktop.
;; ERC
(require 'znc)
(require 'todochiku)
(defun highlight-me (match-type nick message)
(unless (posix-string-match "^\\** Users on #" message)
(todochiku-message
(concat "ERC: Highlight on " (buffer-name (current-buffer)))
(concat "<" (first (split-string nick "!")) "> " message)
"")))
(add-hook 'erc-text-matched-hook 'highlight-me)
(add-hook 'erc-text-matched-hook 'erc-beep-on-match)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment