weechat-dev
[Top][All Lists]
Advanced

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

[Weechat-dev] [task #10881] /filter - substitution option


From: Christopher O'Neill
Subject: [Weechat-dev] [task #10881] /filter - substitution option
Date: Sun, 23 Jan 2011 17:24:20 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4

Follow-up Comment #2, task #10881 (project weechat):

I've experimented a bit with /rmodifier, it almost does what I want but not
quite.  It appears to allow matched expressions to be nullified, censored or
left as is; it does not allow the the format or content to be altered.

The situation is I get sent lengthy messages from the server, for example:

17:11 EN -- xxx.xxxx.net (xxx.xxxx.net): *** Notice --           
address@hidden added temporary 60 min. K-Line for
address@hidden [Temporary K-line 60 min. - You're listed on an IP
blacklist.  Please visit www.xxxxx.net/rbl.php for more information.
(ip=61.160.83.138&network=XxxxNet (2011/1/23 18.11)]

There is much redundant information here, what I'd like to actually see is:

17:11 EN BOPM address@hidden 

Or similar.  Obviously I could write a script to do this (which is what I had
in irssi), but the /filter and /rmodifier commands are almost there.

Let me know what you think, if this is beyond the scope of /rmodifier then
just close this task and I'll write a script for it instead :)

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10881>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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