Simple Swear Kick
Please Register to submit score.
| Average Score | 1.0 |
| Scores Submitted | 1 |
| Date Added | Nov 04, 2007 |
| Last Updated | Nov 04, 2007 |
| Tags | kick kicker mirc reg swear |
Introduction
mIRC Snippet:
Simple Swear Kick
Posted on Nov 4, 2007 10:09 am
Posted on Nov 4, 2007 10:09 am
I'm wondering if you tested this at all because by the looks of it this snippet won't work either. Try this:
on @*:text:*:#:{
var %swear = fark shoot ass
if ($istok($1-,%swear,32)) { kick # $nick Bad word detected }
}
That's just a 'functional' version of your snippet. I would add much more, such as warnings and bans.
on @*:text:*:#:{
var %swear = fark shoot ass
if ($istok($1-,%swear,32)) { kick # $nick Bad word detected }
}
That's just a 'functional' version of your snippet. I would add much more, such as warnings and bans.
mIRC Snippet:
Simple Swear Kick
Posted on Nov 4, 2007 10:33 am
Posted on Nov 4, 2007 10:33 am
Same as ^silk. Your snippet will never work for anyone except for you.
The reason is that you use a glabal variable %swear known only by you.
Here's another method.
;
The dollar '$' sign at the start of the event means 'allow regular expression match'. This then permits to directly put the pattern in event declaration. I'll let you find out about $v1 and $v2. The /S option in the pattern means 'strip data before matching'. :o)
/help on text
Regards
The reason is that you use a glabal variable %swear known only by you.
Here's another method.
;
| Code: |
On $@*:Text:/(BadWord1|BadWord2|BadWord3)/Si:#:{ If ($nick !isop $chan) { KICK $v2 $v1 Bad Word Detected } } ; |
The dollar '$' sign at the start of the event means 'allow regular expression match'. This then permits to directly put the pattern in event declaration. I'll let you find out about $v1 and $v2. The /S option in the pattern means 'strip data before matching'. :o)
/help on text
Regards





