mIRC Homepage

Getting a Users @Host without the Ident or Nick

Posted By: CyberSurfer

Getting a Users @Host without the Ident or Nick - 14/11/03 09:47 AM

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...


Posted By: Collective

Re: Getting a Users @Host without the Ident or Nick - 14/11/03 10:18 AM

In an on TEXT/ACTION:
$site gives the host part
$+(*@,$site) gives *@host
$address gives [email]user@host[/email]
Posted By: rela

Re: Getting a Users @Host without the Ident or Nick - 14/11/03 10:20 AM

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
Posted By: ATMA

Re: Getting a Users @Host without the Ident or Nick - 14/11/03 01:05 PM

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
Posted By: neophyte

Re: Getting a Users @Host without the Ident or Nick - 16/11/03 01:10 AM

$wildsite
Returns the address of the user who triggered an event in the form *!*@host.
Posted By: Collective

Re: Getting a Users @Host without the Ident or Nick - 16/11/03 01:20 AM

From the original post:
*!*@host doesn't work
© 2022 mIRC Discussion Forums