Permalink
Browse files

growl when erc receives my username again

  • Loading branch information...
1 parent 7f8f8be commit c11e96bab577b44266d15be7c3cd0d5d95a94e5f @langmartin committed Jul 1, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 rc-erc.el
View
@@ -80,12 +80,13 @@
(defun erc-growl-hook (match-type nick message)
"Shows a growl notification, when user's nick was mentioned. If the buffer is currently not visible, makes it sticky."
- (unless (posix-string-match "^\\** *Users on #" message)
- (growl
- (concat "ERC " (buffer-name (current-buffer)))
- message)))
+ (when (eq match-type 'current-nick)
+ (unless (posix-string-match "^\\** *Users on #" message)
+ (growl
+ (concat "ERC " (buffer-name (current-buffer)))
+ message))))
-;; (add-hook 'erc-text-matched-hook 'erc-growl-hook)
+(add-hook 'erc-text-matched-hook 'erc-growl-hook)
(defun rc-erc-mode-line-less-decoration ()
(defun erc-modified-channels-object (strings)

0 comments on commit c11e96b

Please sign in to comment.