mIRC Home    About    Download    Register    News    Help

Print Thread
#111136 13/02/05 03:51 AM
Joined: Feb 2005
Posts: 12
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Feb 2005
Posts: 12
Can someone help me make a kick for whenever someone says something like "damn" or some bad word it kicks them. But it doesnt kick oped people. Thank You.

Last edited by Elven001; 13/02/05 03:56 AM.

°Þhëèr †hé ßünNêH°
#111137 13/02/05 05:47 AM
Joined: Mar 2004
Posts: 526
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
use google to search for scripts, there are several that do this already written, why re-invent the wheel.


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
#111138 13/02/05 12:43 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
You would need to use the ON TEXT event, see /help ON TEXT.

Example:

on @*:text:*:#:{
if ($nick isop #) { halt }
if (*damn* iswm $1-) || (*crap* iswm $1-) {
ban -k # $nick 3 Bad Word Detected
}
}


That site I linked to in your last thread also helps, see this page. As HorseC said, there are also a lot of "protection scripts" out there, various links to scripting websites can be found here. We cannot support 3rd party scripts though.

Hope that helps (:

Regards,


Mentality/Chris
#111139 14/02/05 04:10 AM
Joined: Feb 2005
Posts: 8
R
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
R
Joined: Feb 2005
Posts: 8
Personally I think using iswm in this script is a bit buggy, it would also kick for 'scrapbook' which is no swear.

on @*:text:*:#:{
if ($nick !isop #) {
if ($istok($1-,damn,32) || $istok($1-,crap,32)) {
ban -k # $nick 3 Bad Word Detected
}
}
}

Above script will only kick if 'crap' or 'damn' is separated by spaces.

Last edited by remco25; 14/02/05 04:11 AM.

Link Copied to Clipboard