mIRC Home    About    Download    Register    News    Help

Print Thread
#168035 03/01/07 01:59 AM
Joined: Aug 2006
Posts: 24
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Aug 2006
Posts: 24
I need a script witch help me to find users with address.
It would be like this when i write: /scan #mirc mask (/scan #mirc *!*@*.org) like this and then script /echo me users with this addres who have .net , Thx a lot

AivarasB #168042 03/01/07 04:28 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on *:input:*:{
  if $1 == /scan {
    .enable #scan
    .who $2
  }
}
#scan off
raw 315:*:{
  .disable #scan
  haltdef
}
raw 352:*:{
  echo -a $9- $+($6,!,$3,@,$4)
  haltdef
}
raw 416:*:{
  echo -a Too many lines.  Please narrow your search.
  haltdef
}
#scan end

RusselB #168058 03/01/07 11:20 AM
Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
Many ircds have a way of doing that via the /who command.

The following works on unreal ircd and on bewareircd (the two I can run locally atm. I know both ircu (Undernet) and bahamut (Dalnet) have an equivalent format)

Code:
/who #chan *.net


I think bahamut's is:

Code:
/who +ch #chan *.net


(but I'm just working from (poor) memory).

[edit]
And it looks like (from reading the source, so untested) ircu's format is:
Code:
/who #chan % *.net
(note the '%' separator, it is required to mark the second set of options - here there are no options specified)
[/edit]

Obviously doing this server-side rather than client side is better for you (all the hard work is done by the remote computer, not your local machine)!

Last edited by Sais; 03/01/07 12:13 PM.

Sais
Sais #168117 04/01/07 12:24 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
LOL...That's almost identical to what the script I wrote does..in fact the /who command is in my script...or did you post the reply to the wrong person?

RusselB #168118 04/01/07 12:33 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
I think he's saying that the filtering involved is better left to the server (i.e., by using bahamut's "/who # % *.net"), instead of letting the client (your mIRC script) do the job.

Well, it depends on whether the network supports the mentioned parameters for /who or not. Some of them don't; then, the only way to have it would be through a script like yours.

Last edited by cold; 04/01/07 12:40 AM.

* cold edits his posts 24/7

Link Copied to Clipboard