mIRC Home    About    Download    Register    News    Help

Print Thread
#73578 04/03/04 01:56 AM
Joined: Dec 2002
Posts: 14
IL_Pizu Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 14
Menu Channel {
Viruses
.$submenu($viruses($1-))
}

alias viruses {
if ($1 == begin) return -
if ($1 >= 1) && ($1 <= $var(%viruses.*,0)) { var %i = $var(%viruses.*,$1).value | return %i : msg $chan %i }
if ($1 == end) return -
}

this still can't make it work! any idea?


Watch Your Back.
#73579 04/03/04 08:35 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
What do the variables look like, show some examples of them with their values.

#73580 04/03/04 08:48 AM
Joined: Dec 2002
Posts: 14
IL_Pizu Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 14
%Viruses.1 [email]W32.Mydoom.H@mm[/email] Risk: 2 Threat: http://securityresponse.symantec.com/avcenter/venc/data/w32.mydoom.h@mm.html Discovered: March 3, 2004 Protection: March 4, 2004
%Viruses.2 [email]W32.Beagle.K@mm[/email] Risk: 2 Threat: http://securityresponse.symantec.com/avcenter/venc/data/w32.beagle.k@mm.html Discovered: March 3, 2004 Protection: March 3, 2004


Watch Your Back.
#73581 04/03/04 09:15 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Try this
Code:
alias viruses {
  if e isin $1 return -
  if $var(%viruses.*,$1).value { return $gettok($ifmatch,1,32) : msg $chan $!var(%viruses.*, $1 ).value }
}

#73582 04/03/04 09:29 AM
Joined: Dec 2002
Posts: 14
IL_Pizu Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 14
hey 10x, it worked!

if you don't bother can you explain it or?


Watch Your Back.
#73583 04/03/04 09:56 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well, the reason it wasn't working for you is because the ":" char is the delimiter between 'menu:command'. This just returns "name of virus" : "msg $chan $var(%viruses.*,N)" as the 'menuitem:command', and the command is fianlly evaluated within the execution of "msg $chan $var()".

#73584 08/03/04 08:30 AM
Joined: Dec 2002
Posts: 14
IL_Pizu Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 14
10x!


Watch Your Back.

Link Copied to Clipboard