ChatZilla:Message Filter: Difference between revisions

Line 35: Line 35:
So, suppose we matched a filter. What can the user tell us to do from the first field?
So, suppose we matched a filter. What can the user tell us to do from the first field?


*Create tab for ... (source, target, handling, parent of handling etc.)
*Display on:
*Display on the target tab (passed in by the caller, usually server / channel / user)
** the target tab (passed in by the caller, usually server / channel / user)
*Display on the source tab (for example, the user who sent the message)
** the source tab (for example, the user who sent the message)
*Display on the current tab. (whatever's current when display is called)
** the current tab. (whatever's current when display is called)
*Display on the handling tab. (the tab display was called on)
** the handling tab. (the tab display was called on)
*Display on the parent of the handling tab. This is the network/server tab for users/channels/dcc, and the client tab for networks/servers.
** the parent of the handling tab. This is the network/server tab for users/channels/dcc, and the client tab for networks/servers.
*Display on client tab. Plain, simple.
** the client tab. Plain, simple.
*Get Attention. Will flash the window. Ignores other fields.
*Get Attention. Will flash the window. Ignores other fields.
*Set the tab state. Will use the other field to pick a state and tab to do this on.
*Set the tab state. Will use the other field to pick a state for this, and a list of views to try and set (same options as the display action).
*Play sound. Takes the second field into account: beep or url to sound file
*Play sound. Takes the second field into account: beep or url to sound file
*Dispatch. Takes the second field as the parameter.
*Dispatch. Takes the second field as the parameter.
*Run function. Only available using a plugin / script?
*Run function.
*Is important. Mark as an important line, just like stalking currently does.


=== Fallback for displays ===
Suppose a tab we want to display on does not exist? The user should be able to specify how to fallback (we can't just not display anything without notice).
Suggestions welcome, the talk page should be good for that.


=== Existing things that could be done using filters ===
=== Existing things that could be done using filters ===
Confirmed users
293

edits