mIRC Home    About    Download    Register    News    Help

Print Thread
#186951 29/09/07 06:02 AM
Joined: Jul 2003
Posts: 24
K
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Jul 2003
Posts: 24
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,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
What's wrong with the * character, which is currently available?

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

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Oct 2006
Posts: 48
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Oct 2006
Posts: 48
*ignore*

Last edited by Ghozer; 30/09/07 03:40 AM.
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
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