I would like to have more fine grained control over how
the bot ignores things.
Irssi style ignores would be optimum. Here is the help
dump fore more info to anyone willing to work on it.
IGNORE [-regexp | -full] [-pattern <pattern>] [-except]
[-replies]
[-channels <channel>] [-time <secs>]
<mask> [<levels>]
IGNORE [-regexp | -full] [-pattern <pattern>] [-except]
[-replies] [-time
<secs>] <channels> [<levels>]
-regexp: <pattern> is a regular expression -full: <pattern> must match to full words -pattern: <pattern> must match to the message's text -replies: Ignore replies to nick in channels. For
example
"/IGNORE -replies !@.fi PUBLIC"
ignores everyone
from Finland, but also anyone sending message
"tofinnishnick: blahblah".
-except: DON'T* ignore - overrides an existing ignore.
-channels: Ignore only in channels
<mask>: Either a nick mask or list of channels
<levels>: List of levels to ignore. You can use
-<level> to remove
levels
from ignore.
<^levels>: List of levels to NOT ignore
(/ignore -except nick notices = /ignore
nick ^notices)
/IGNORE without any arguments displays list of ignores.
If you want to
remove some levels of the ignore, use /IGNORE
<mask> -<level> -<level2>
etc
The best match always wins, so you can have:
/IGNORE * CTCPS
/IGNORE -except !@host.org CTCPS
Examples:
/IGNORE #channel ALL -PUBLIC -ACTIONS - ignore
all but
public/actions
/IGNORE #channel -JOINS - don't
ignore joins anymore
/IGNORE -replies !user@.host.org ALL - ignore
user and all replies
Logged In: YES
user_id=99508
You said, "I would like to have more fine grained control over how
the bot ignores things." Could you expand on this? Many of the things in
this list don't really apply to a bot -- for instance, replies, actions, etc.
The only thing that seems to make sense is exceptions. Is that all that
you really want?
Logged In: YES
user_id=25807
The biggest improvement would be regexp style ignoring, yes.
The ability to ignore urls coming from one user would be an
example that I would use it for. That way the bot doesn't
have to ignore everything the person says just because they
have a script that runs (preforming the tinyurl function,
thus causing titlesnarf to be called twice for effectively
the same url -- tinysnarf is disabled in the channel, and
currently it ingores everything from this person :( )
There's my real world example. :) This could be expanded to
many other specific uses.
Logged In: YES
user_id=99508
This sounds like a very doable first plugin to write, Hagabard :)