Sponsored Links




Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#261 - 12/10/07 02:57 PM Kick/Ban on specific phrases
usrbingeek Administrator Offline
WyldRyde Staff

Registered: 07/31/06
Posts: 482
Loc: Burlington, VT
With this script you can automatically kick and ban a user for saying a specific phrase or word. The ban will be automatically removed after a specific number of seconds. In this example the ban is removed after 30 minutes.

You'll need to modify the following in the 1st line:
  • Replace "banned-phrase-goes-here" with the word or phrase you want to kick/ban users for.
  • Replace #channel with your channel's name.

Code:
on @*:TEXT:*banned-phrase-goes-here*:#channel: {
  if (($nick !isop $chan) && ($address($nick,2) != wyldryde.org)) { 
    ban $($+(-ku,1800)) $chan $nick 3 Your attitude is not conducive to the desired environment. 
  }
}


How to have more than one kick/ban word or phrase:
You can copy this script and change the 1st line to kick on different words or phrases. Just place every copy below the preceding one in mIRC's Remotes.

Example:
Code:
on @*:TEXT:*banned-phrase-goes-here*:#channel: {
  if (($nick !isop $chan) && ($address($nick,2) != wyldryde.org)) {  
    ban $($+(-ku,1800)) $chan $nick 3 Your attitude is not conducive to the desired environment. 
  }
}
on @*:TEXT:*banned-phrase-goes-here2*:#channel: {
  if (($nick !isop $chan) && ($address($nick,2) != wyldryde.org)) { 
    ban $($+(-ku,1800)) $chan $nick 3 Your attitude is not conducive to the desired environment. 
  }
}
on @*:TEXT:*banned-phrase-goes-here3*:#channel: {
  if (($nick !isop $chan) && ($address($nick,2) != wyldryde.org)) { 
    ban $($+(-ku,1800)) $chan $nick 3 Your attitude is not conducive to the desired environment. 
  }
}

_________________________
WyldRyde IRC Network
Steve Mermelstein
Root Admin

#!/usr/bin/geek
My Amazon.com Wishlist

Please no PMs. Please post to a topic instead so your question(s) may benefit others.

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#319 - 12/20/07 03:03 AM Re: Kick/Ban on specific phrases [Re: usrbingeek]
boredcollegekid Offline
newbie

Registered: 12/19/07
Posts: 48
Loc: Tulsa, OK
how would I edit it so that it simply kicks the person?
_________________________

Top
#321 - 12/20/07 07:05 PM Re: Kick/Ban on specific phrases [Re: boredcollegekid]
usrbingeek Administrator Offline
WyldRyde Staff

Registered: 07/31/06
Posts: 482
Loc: Burlington, VT
Simple replace 'ban $($+(-ku,1800))' with 'kick'

_________________________
WyldRyde IRC Network
Steve Mermelstein
Root Admin

#!/usr/bin/geek
My Amazon.com Wishlist

Please no PMs. Please post to a topic instead so your question(s) may benefit others.

Top
#534 - 01/02/08 11:46 AM Re: Kick/Ban on specific phrases [Re: usrbingeek]
TJENN
Unregistered


How would you do the same script for people that use all caps? Like certain number of caps in a sentence?

Or a script that warns the person no to use all caps?


Edited by TJENN (01/02/08 11:47 AM)

Top
#554 - 01/06/08 12:45 AM Re: Kick/Ban on specific phrases [Re: ]
JalenJade Offline
n00b

Registered: 12/01/07
Posts: 19
Loc: Utah

Top
#669 - 01/19/08 09:32 PM Re: Kick/Ban on specific phrases [Re: JalenJade]
TuxedoJericho Offline
newbie

Registered: 12/24/07
Posts: 42
Loc: Whitesburg, TN
How can I make that script so that it will not kicks half-ops as well?

I have this

on 1:TEXT:*ustream.tv*:#:/if (($nick !isop $chan) || ($nick !ishop $chan)) { ban $($+(-ku,1800)) $chan $nick 3 Your attitude is not conducive to the desired environment. }

It's still wanting to kick both ops and hops.

_________________________
I am Gary "TuxedoJericho" Greenlee, and I support this message.

Top
#675 - 01/20/08 04:38 PM Re: Kick/Ban on specific phrases [Re: TuxedoJericho]
usrbingeek Administrator Offline
WyldRyde Staff

Registered: 07/31/06
Posts: 482
Loc: Burlington, VT
This is untested but try:

Code:
on 1:TEXT:*ustream.tv*:#: {
if (($nick !isop $chan) || ($nick !ishop $chan)) {
 ban $($+(-ku,1800)) $chan $nick 3 Your attitude is not conducive to the desired environment. 
}
}


Often it won't work unless it's on it's own line.
_________________________
WyldRyde IRC Network
Steve Mermelstein
Root Admin

#!/usr/bin/geek
My Amazon.com Wishlist

Please no PMs. Please post to a topic instead so your question(s) may benefit others.

Top
#678 - 01/20/08 06:22 PM Re: Kick/Ban on specific phrases [Re: usrbingeek]
TuxedoJericho Offline
newbie

Registered: 12/24/07
Posts: 42
Loc: Whitesburg, TN
Lol. I tried that way, and even made a second line with this

Code:
on 1:TEXT:*ustream.tv*:#: {
if ($nick !ishop $chan) {
 ban $($+(-ku,1800)) $chan $nick 3 Your attitude is not conducive to the desired environment. 
}
}


still banned and kicked one of my clients as a half op.

Oh well, Half ops should no know to post ustream urls in the first place. LOL
_________________________
I am Gary "TuxedoJericho" Greenlee, and I support this message.

Top
#953 - 02/24/08 05:46 AM Re: Kick/Ban on specific phrases [Re: TuxedoJericho]
battlekhan Offline
n00b

Registered: 02/16/08
Posts: 5
Loc: Dallas, TX
Weird, I got it to protect Hops/Ops this way!

on @*:text:*banned-phrase-goes-here*:#channel: {
if ($nick isop $chan || $nick ishop $chan) {
}
else {
ban $($+(-ku,1800)) $chan $nick 3 Your attitude is not conducive to the desired environment.
}
}

Top
#954 - 02/24/08 06:05 AM Re: Kick/Ban on specific phrases [Re: battlekhan]
battlekhan Offline
n00b

Registered: 02/16/08
Posts: 5
Loc: Dallas, TX
Is there a way to WARNING users by kicking them 3 times, then 4th time (I get the auto-unban 'ban $($+(-ku,1800))' /) ban the user?

kick #1
kick #2
kick #3
banned


Edited by battlekhan (02/24/08 06:11 AM)

Top
Page 1 of 2 1 2 >


Recent Posts
mIRC Script Editor in WINE Crashes... constantly
by iAlex
Yesterday at 11:53 AM
Need Badword Kick Script!
by iAlex
11/30/08 11:30 AM
Bot file logging
by iAlex
11/30/08 11:12 AM
Reminding People of Rules
by usrbingeek
11/30/08 12:42 AM
-improved status bragginb
by iAlex
11/29/08 07:25 PM
Quick Moderation Alias
by Firebucket
11/29/08 07:07 PM
Voice
by Sn0vv
11/28/08 09:53 PM
Some Suggestions
by Sn0vv
11/28/08 09:16 PM
Thank You Moderators
by Sn0vv
11/28/08 09:07 PM
Rules for Voiced Users being Enforced More
by Sn0vv
11/28/08 08:58 PM
Accept and Deny private message scripts
by iAlex
11/28/08 08:36 AM
Topic Script!!!
by bradjoe96
11/27/08 08:53 PM
Recent Pics
mIRC on Linux
mIRC on Linux???
Computer Spam o_O
Who's Online
0 registered (), 3 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 482
Kat 276
iPhone 108
Phil 98
Freekie 86
CCMike 78
techman224 75
Justin 72
tengrrl 58
wirelesspacket 52
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.