|
|
#261 - 12/10/07 02:57 PM
Kick/Ban on specific phrases
|
Registered: 07/31/06
Posts: 512
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.
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:
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 WishlistPlease no PMs. Please post to a topic instead so your question(s) may benefit others.
|
|
Top
|
|
|
|
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]
|
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]
|
Registered: 07/31/06
Posts: 512
Loc: Burlington, VT
|
Simple replace 'ban $($+(-ku,1800))' with 'kick'
_________________________
WyldRyde IRC Network Steve Mermelstein Root Admin #!/usr/bin/geek My Amazon.com WishlistPlease 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: ]
|
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]
|
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]
|
Registered: 07/31/06
Posts: 512
Loc: Burlington, VT
|
This is untested but try: 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 WishlistPlease 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]
|
newbie
Registered: 12/24/07
Posts: 42
Loc: Whitesburg, TN
|
Lol. I tried that way, and even made a second line with this
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
|
|
|
|
Moderator: AdmiralJustin, Atri, Catt, crrj, dolsen, Freekie, Helio, Jeff, jpmk12, Justin, Kat, mandy, Mist, nobody, Phil, Pierce, Ryan, SuburbanWolf, therock247uk, ThunderIT-Allan, usrbingeek
|
|
2 registered (Alicia, Christian),
4
Guests and
7
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|