- On ^*:open:?:Come watch me on my webcam and chat *:{
echo 4 -ta $nick is infected with a worm. Host: $gettok($mid($12,8),1,58)
}
$12 is the 12th word of the sentence, (http://[/b]host:port/file.ext)
$mid(...,8) returns the word starting from the 8th letter (host:port/file.ext)
$gettok(...,1,58) splits the partial word and returns the host only (host).
You may add the command /haltdef to this event to prevent the query window from opening at all.
Also note that the server command /whowas <nick> is available for you, so you can still find the host of someone who just quitted or changed nick.