mIRC Home    About    Download    Register    News    Help

Print Thread
multiple on INPUT targets #186951 29/09/07 06:02 AM
Joined: Jul 2003
Posts: 24
K
KilledInAction Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Jul 2003
Posts: 24
From the bugs forum thread located here: http://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.

Re: multiple on INPUT targets [Re: KilledInAction] #186953 29/09/07 07:39 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
What's wrong with the * character, which is currently available?

Re: multiple on INPUT targets [Re: RusselB] #186956 29/09/07 11:19 AM
Joined: Sep 2005
Posts: 2,878
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,878
* includes @windows and dcc chats.

Re: multiple on INPUT targets [Re: hixxy] #186964 29/09/07 01:43 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
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.

Re: multiple on INPUT targets [Re: RusselB] #187044 30/09/07 03:39 AM
Joined: Oct 2006
Posts: 48
G
Ghozer Offline
Ameglian cow
Offline
Ameglian cow
G
Joined: Oct 2006
Posts: 48
*ignore*

Last edited by Ghozer; 30/09/07 03:40 AM.
Re: multiple on INPUT targets [Re: RusselB] #187051 30/09/07 03:57 AM
Joined: Jun 2006
Posts: 508
D
deegee Offline
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 }
}