erc-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Erc-discuss] Re: erc-track.el & ignoring bitlbee away messages


From: Michael Olson
Subject: [Erc-discuss] Re: erc-track.el & ignoring bitlbee away messages
Date: Thu, 29 Jun 2006 00:00:10 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Mark Plaksin <address@hidden> writes:

> I use ERC to connect to a bitlbee server.  When I have autoaway turned on,
> bitlbee generates messages like these in my /query-generated buffers:
>
> *** You're now away: I'm gone (autoaway after 955 seconds of idletime)
> *** Welcome back
>
> Both of these messages make erc-track.el tell me that those buffers have
> had activity.  I want erc-track to ignore these messages.  The only way I
> found to do it is the attached patch plus this:
> (setq erc-track-ignore-list '("^[*][*][*] Welcome back" "^[*][*][*] You're 
> now away:"))
>
> Is there a better way?  If not, do you like the patch?

The best way to do this is do set erc-track-exclude-types as follows.

(setq erc-track-exclude-types '("NICK" "305" "306"))

The "305" and "306" values correspond to the "Welcome back" and
"You're now away" messages, respectively.

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: freenode.net/mwolson: #emacs, #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC

Attachment: pgpeLfrhel4M9.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]