mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2005
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Apr 2005
Posts: 4
when som one make advertisment and invites to another
servers i want to kill this nick so i write that
Code:
  on 1:text:join /server irc.:#:/kill $nick Don't InVite Here Cuz I aM Here 


but not work perfect i need when inviter type any msg have
/server get kill
thanks

Moved to Scripts & Popups

Last edited by Mentality; 25/09/05 10:39 PM.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
This should've been placed in the Scripts & Pop-ups forum, not Developers. If you do a search, and extend the time frame to more than 1 week, you'll find a few examples of what you're asking for.

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
on 1:text:*join /server irc.*:#:{ /kill $nick Don't InVite Here Cuz I aM Here }

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
on 1:TEXT:*:#: {
if ($server isin $1-) { halt }
elseif (irc. isin $1-) { kill $nick Do not advertise another server else then $server }
}


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Sep 2004
Posts: 200
I
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
Code:
on $*:text:/(?:join irc\.\S+\.\S+\.\S+|(do|paste) \/server|connect to irc\.\S+\.\S+\.\S+)/gi:#:/kill $nick Don't InVite Here Cuz I aM Here

that *should* kill most of peoples attempts to invite, irc\..+\..+\..+ means "'irc' folowed by a '.', then 1 or more characters, then another '.', and some more characters, with no spaces".
if you want to do it the way, where almost nothing escapes (and alot of inocent people could get killed by just saying irc.a.a/ect), use
Code:
 
on $*:text:/irc(\.|dot|\[dot\]|d0t|\[d0t\])\s*\S+(\.|dot|[dot]|d0t|[d0t])\s*\S+/gi:#:/kill $nick Don't InVite Here Cuz I aM Here


*untested* wink


Link Copied to Clipboard