mIRC Home    About    Download    Register    News    Help

Print Thread
Getting a Users @Host without the Ident or Nick #60275 14/11/03 09:47 AM
Joined: Oct 2003
Posts: 3
C
CyberSurfer Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Oct 2003
Posts: 3
Ok..

I'm sure you all have seen those nice spam/trojan "Double Click Here" URL PM's that are going around on some networks. Well we have a small infestation of them over on our network atm, and while the Oper's are dealing with them, I thought perhaps a REMOTE script, that would detect the text string they use, and auto-message services to do a G-Line would be handy.

The problem is, I can't find a way to get the @host part of their [email]User@host[/email], so that I can include it in the command syntax for our services. *!*@host doesn't work.. it has to be *@host (Pesky undernet coders).


Any help on this would be greatly appreciated as these pests keep coming in and out of channels then PM'ing their spam/virus to all the members of the channels...



Re: Getting a Users @Host without the Ident or Nick #60276 14/11/03 10:18 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
In an on TEXT/ACTION:
$site gives the host part
$+(*@,$site) gives *@host
$address gives [email]user@host[/email]

Re: Getting a Users @Host without the Ident or Nick #60277 14/11/03 10:20 AM
Joined: Jan 2003
Posts: 45
R
rela Offline
Ameglian cow
Offline
Ameglian cow
R
Joined: Jan 2003
Posts: 45
Code:
 $right( $address( $nick ,2) , $calc( $len( $address( $nick ,2) ) -2 ) ) 


Code:
  $gettok( $address( $nick ,2),2,33) 


You can better do with regex, but i don't get that yet :-p

Last edited by rela; 14/11/03 10:23 AM.

@#botwars @Kreynet
Re: Getting a Users @Host without the Ident or Nick #60278 14/11/03 01:05 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
if your useing SRVX +x hides the persons @host and stuff so u need to msg opserv (if your opers) to get it sometimes you can also get IPs and stuff


Need amazing web design for low price: http://www.matrixn3t.net
Re: Getting a Users @Host without the Ident or Nick #60279 16/11/03 01:10 AM
Joined: Apr 2003
Posts: 426
neophyte Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
$wildsite
Returns the address of the user who triggered an event in the form *!*@host.


--------
mIRC - fun for all the family (except grandma and grandpa)
Re: Getting a Users @Host without the Ident or Nick #60280 16/11/03 01:20 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
From the original post:
*!*@host doesn't work