mIRC Home    About    Download    Register    News    Help

Print Thread
#186951 29/09/07 06:02 AM
K
KilledInAction
KilledInAction
K
From the bugs forum thread located here: https://forums.mirc.com/ubbthreads.php?ubb=showflat&Number=186596&page=1#Post186596

This is requesting the ability to handle multiple targets for the on INPUT, as on TEXT events handle. For example:
on *:INPUT:#,?:
would allow you to make one script for both channels and queries.

This could also be applied to other event types that currently only allow a single target.

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
What's wrong with the * character, which is currently available?

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
* includes @windows and dcc chats.

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Hixxy: I realize that, and, after re-reading my post, I realize I could've worded it better.

KilledInAction: As a temporary solution, the * could be used, as this will cover channel and pm windows. If you want to know if it's a channel window or not, check the return from $chan.

If it's a channel window, then $chan will return the name of the channel, otherwise it'll return $null

Hixxy's notation is, realistically, if not literally, the only drawback that I know of.

G
Ghozer
Ghozer
G
*ignore*

Last edited by Ghozer; 30/09/07 03:40 AM.
Joined: Jun 2006
Posts: 506
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 506
Originally Posted By: RusselB
Hixxy: I realize that, and, after re-reading my post, I realize I could've worded it better.

KilledInAction: As a temporary solution, the * could be used, as this will cover channel and pm windows. If you want to know if it's a channel window or not, check the return from $chan.

If it's a channel window, then $chan will return the name of the channel, otherwise it'll return $null

Hixxy's notation is, realistically, if not literally, the only drawback that I know of.

Code:
on *:input:*:{
  if $window($target).type isin channel query { do stuff }
}


Link Copied to Clipboard