Closed turmoni closed 11 years ago
Thanks, I'll test and (probably) merge these some day. Not sure how oft-used these would be, but I guess options can't hurt :). Though, there's been at least one request for the blacklisting (or whitelisting, I'm not sure any more).
Thanks; I agree that they're probably mainly going to be useful for more heavy irssi users, but they're all things I'd implemented (in a pretty hacky way) on a previous script version out of necessity. (The regex blacklisting mainly being due to having hundreds of windows of PM spam firing up a load of wget processes and pushing rather a lot of notifications to my phone.)
Now, typing this did make me realize that I hadn't quite reimplemented what I meant to, insofar as the whitelist should only apply to public messages (for my use case at least, I can't decide that this is what everyone else wants), so I've now fixed that.
Finally I've taken a look at the commits, everything looks good, so finally merging, testing and releasing. Thanks, and sorry for the wait.
I've added three new highlight-control options to my version of irssinotifier.pl; these are:
irssinotifier_ignored_nicks
- a list of nicks to block highlights from (if set). Useful for ignoring highlights from bots.irssinotifier_ignored_highlight_patterns
- a list of regular expressions; if set, if the message matches any of these, then the highlight will not be sent. Useful for ignoring automated messages that you don't care about.irssinotifier_required_highlight_patterns
- a list of regular expressions; if set, the message must match at least one of these in order for a highlight to be sent. Useful for if you have a lot of highlights in irssi but don't want to be notified for most of them.(I've also got rid of a few stray tabs and replaced them with spaces.)
-Dave