erc-discuss
[Top][All Lists]
Advanced

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

[Erc-discuss] Re: Some questions on logging


From: Michael Olson
Subject: [Erc-discuss] Re: Some questions on logging
Date: Fri, 30 Jun 2006 00:29:22 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Tassilo Horn <address@hidden> writes:

> 1. I use bitlbee and if a buddy sends a message to me a new query buffer
>    will be opened. It's named "address@hidden".
>
>    If I do "/query some TAB", the completion will expand to "somebuddy"
>    (all lowercase!) instead of "someBuddy" and as a result, I have two
>    log files for the same buddy -- one containing conversations I
>    started, and one containing conversations he started.

Hmm, it looks like we already downcase the buddy's name when deciding
the log filename to use.  Can you specify the names of the two
logfiles that are being made for the same buddy?  Feel free to
anonymize the names if you like -- I just want to get a general idea
of what is going on.

That said, I can see one possible way that this could be happening,
but it's would take some additional effort to fix, so I want to verify
that the problem exists first.

Also, it would help to know what operating system you are using.

> 2. How can I restrict logging to my bitlbee buffers? They all have the
>    form "^\\(&bitlbee\\|nick\\)@localhost$", so a log restriction based
>    on a regular expression would be handy.

Do something like the following.

(defun my-erc-log-bitlbee-buffers (buffer)
  (string-match "@localhost$" (buffer-name buffer)))

(setq-default erc-enable-logging 'my-erc-log-bitlbee-buffers)

-- 
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: pgpya_iYKuG7z.pgp
Description: PGP signature


reply via email to

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