mIRC Home    About    Download    Register    News    Help

Print Thread
M
Mpot
Mpot
M
I wanted to get a script that will $address all nicks who join a certain channel, and if it matches a certain hostmask(~Legionnai@c-71-201-61-191.hsd1.il.comcast.net), echo a message to me or send a message to someone else, saying "Hostmask match for ~Legionnai@c-71-201-61-191.hsd1.il.comcast.net found, nick was nickthatwasfound

Also, can the script be made to where all I have to do is change the inputed hostmask and I'll keep an eye out for a different mask?

on 1:join:#channel:$address($nick,5) is what I've come up with so far. Any help?

Last edited by Mpot; 10/09/07 08:57 PM.
Joined: Nov 2006
Posts: 1,552
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,552
Code:
; enter the mask-to-match here
alias -l watchmask { return *!user-mask*with@*wildcards.allowed }

; this is the join event; change #channel and the echo part to whatever you like 
on !*:join:#channel: {
  if ($watchmask iswm $fulladdress) { echo -a $nick joined $chan on $network with $fulladdress matching $watchmask }
}

M
Mpot
Mpot
M
Thanks!

S
ShadowWlf
ShadowWlf
S
This is actually kinda what I'm trying to do myself-except have it parse a txt file of IPs/hostmasks and if any matches in the txt file echos the result to me when someone joins so I'm aware of a potential trouble maker joining the chan.

Any help would be appreciated, Thanks


Link Copied to Clipboard