lp:~epsy/+junk/xchat-hilight-ignore++

Created by Yann Kaiser on 2011-10-21 and last modified on 2012-04-05

Improves xchat's ignore and highlight functions with /IGNORE and /HILIGHT, similar to irssi's /IGNORE and /HILIGHT

To install:
1. Download the script from here: http://bazaar.launchpad.net/~epsy/+junk/xchat-hilight-ignore++/view/head:/hilight-ignore%2B%2B.py (Click "(I) download file")
2. Put it in xchat's data directory: http://xchat.org/faq/#q218
3. Restart xchat or select the file from Window -> Plugins and Scripts -> Load
4. To get started type /hilight or /ignore

Help texts:

 Usage: HILIGHT [-except] [-full | -regexp] [-mask <mask>] [-levels <levels>] [-networks <networks>] [-channels <channels>] [-time <seconds>] <text>

     Sets <text> in messages to cause highlighting.

     Flags:

         -except: When this rule is matched, *never* hilight the message.

         -full: <text> must match full words.
         -regexp: <text> is a regular expression. (See http://docs.python.org/library/re.html)

         -mask: Match only messages from <mask>.

         -levels: Comma-separated list of text events that can trigger the hilight. (Default: "channel message, channel action, private message, private action, private message to dialog, private action to dialog, notice")
         -networks: Comma-separated list of networks this rule should apply on.
         -channels: Comma-separated list of channels this rule should apply on.

         -time: Time after which the rule is removed.

     Examples:

     Highlight lines that have "mynick" word:
         /HILIGHT -full mynick

     Highlight all messages from "mynick":
         /HILIGHT -mask mynick!*@* -regexp .*

     Highlight lines that have "@admins" in channel #mychannel
         /HILIGHT -channels #mychannel @admins

     See also: /HELP DEHILIGHT, Settings -> Advanced -> Text Events...

Usage: IGNORE [-except] [-replies] [[-full | -regexp] -pattern <pattern>] [-networks <networks>] [-channels <channels>] [-time <seconds>] <mask> [<levels>]

     Ignore messages of type(s) <levels> from <mask>.

     Flags:

         -except: When this rule is matched, *never* ignore the message.

         -replies: Also ignore replies to <mask>. Does not work with patterns.

         -full: <pattern> must be a full word.
         -regexp: <pattern> is a regular expression. (See http://docs.python.org/library/re.html)
         -pattern: Match only when the message text contains <pattern>

         -networks: Comma-separated list of networks this rule should apply on.
         -channels: Comma-separated list of channels this rule should apply on.
         -levels: Comma-separated list of text events that can trigger the hilight. (Default: "channel message, channel action, private message, private action, private message to dialog, private action to dialog, notice")

         -time: Time after which the rule is removed.

     Examples:

     Ignore people nicknamed "someone" and replies to them:
         /IGNORE -replies someone

     Ignore people from a defined host:
         /IGNORE *!*@*.aol.com

     Ignore away chatter:
         /IGNORE -regexp -pattern "is (away|gone|back)" * channel action
         /IGNORE *away* change nick
         /IGNORE *back* change nick
         /IGNORE *zzz* change nick
         /IGNORE *work* change nick

     See also: /HELP UNIGNORE, Settings -> Advanced -> Text Events...

Get this branch:
bzr branch lp:~epsy/+junk/xchat-hilight-ignore++
Only Yann Kaiser can upload to this branch. If you are Yann Kaiser please log in for upload directions.

Related bugs

Related blueprints

Branch information

Owner:
Yann Kaiser
Status:
Mature

Recent revisions

8. By Yann Kaiser on 2012-04-05

Raise NotImplementedError instead of returning NotImplemented.

7. By Yann Kaiser on 2012-04-05

Fixed /HILIGHT not handling -except.

6. By Yann Kaiser on 2011-10-29

Improved text/mask matching logic.

5. By Yann Kaiser on 2011-10-29

Fixed hilights matching all masks and full words being treated as full lines.

4. By Yann Kaiser on 2011-10-22

Fixed bug where a rule would be skipped if an item had just expired

3. By Yann Kaiser on 2011-10-22

Fixed error when items expire

2. By Yann Kaiser on 2011-10-22

Removed some debugging lines

1. By Yann Kaiser on 2011-10-21

Initial commit

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar RepositoryFormatKnitPack6RichRoot (bzr 1.9)
This branch contains Public information 
Everyone can see this information.