Skip to content

Commit

Permalink
* sauron-erc.el: better cleanup of IRC meta-stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
djcb committed Dec 21, 2011
1 parent 603acf9 commit ce82d5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sauron-erc.el
Expand Up @@ -106,7 +106,7 @@ The following events are erc-track
(defun sr-erc-msg-clean (msg)
"Clean IRC escaped stuff from messages."
(when msg ;; remove the IRC meta crap
(replace-regexp-in-string ".*\\(\\|\\)" msg "")))
(replace-regexp-in-string ".*[]" "" msg)))

(defun sr-erc-PRIVMSG-hook-func (proc parsed)
"Hook function, to be called for erc-matched-hook."
Expand All @@ -117,7 +117,6 @@ The following events are erc-track
(msg (sr-erc-msg-clean (erc-response.contents parsed)))
(prio
(cond
((numberp (string-match "" msg)) 1) ;; ignore IRC meta messages
((string= sender "root") 2) ;; bitlbee stuff; low-prio
((string= me target) 3) ;; private msg for me => prio 4
((string-match me msg) 3) ;; I'm mentioned => prio 3
Expand Down

0 comments on commit ce82d5a

Please sign in to comment.