|
|
#261 - 12/10/07 02:57 PM
Kick/Ban on specific phrases
|
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.
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: 482
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: 482
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
|
|
|
|
#1292 - 03/13/08 06:43 PM
Re: Kick/Ban on specific phrases
[Re: battlekhan]
|
n00b
Registered: 03/12/08
Posts: 19
Loc: UK
|
im using this one But is there a way to set it on a timer so it only bans them for a certin amount of time? 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. } }
_________________________
Oh cool a LIFE ! Where can i torrent myself one of those?!?!
Hello im called Stuzilla, And so am i!
=]
#And i wont sit down, And i wont Grow up, But most of all yeah, i wont grow up#
|
|
Top
|
|
|
|
#1294 - 03/13/08 06:50 PM
Re: Kick/Ban on specific phrases
[Re: usrbingeek]
|
newbie
Registered: 12/19/07
Posts: 48
Loc: Tulsa, OK
|
. The ban will be automatically removed after a specific number of seconds. In this example the ban is removed after 30 minutes.
-u in the code is the command to remove the ban. in the example it auto removes after 30 mins change 1800 to how ever many seconds you want the person banned for http://www.wyldryde.org/a/000610.php
Edited by boredcollegekid (03/13/08 06:54 PM)
_________________________
|
|
Top
|
|
|
|
#1296 - 03/13/08 07:12 PM
Re: Kick/Ban on specific phrases
[Re: boredcollegekid]
|
n00b
Registered: 03/12/08
Posts: 19
Loc: UK
|
Oh lol I didnt see that Thanks =]
_________________________
Oh cool a LIFE ! Where can i torrent myself one of those?!?!
Hello im called Stuzilla, And so am i!
=]
#And i wont sit down, And i wont Grow up, But most of all yeah, i wont grow up#
|
|
Top
|
|
|
|
#1532 - 04/05/08 12:12 AM
Re: Kick/Ban on specific phrases
[Re: Stuzilla]
|
n00b
Registered: 04/05/08
Posts: 1
Loc: Canada
|
excuse me i want to permanment ban someone on @*:TEXT:*this Sh*t server*:#burningwow: { if (($nick !isop $chan) && ($address($nick,2) != WyldRyde.org)) { ban $($+(-ku,1800)) $chan $nick 3 Go To Hell, We do not tolerate insults towards the server } } do i just remove ($+(-ku,1800)) or what do i have to remove? can u give me the edited snippet plz thx 
|
|
Top
|
|
|
|
#1536 - 04/05/08 10:15 AM
Re: Kick/Ban on specific phrases
[Re: DarkXessZ]
|
newbie
Registered: 12/24/07
Posts: 42
Loc: Whitesburg, TN
|
excuse me i want to permanment ban someone on @*:TEXT:*this Sh*t server*:#burningwow: { if (($nick !isop $chan) && ($address($nick,2) != WyldRyde.org)) { ban $($+(-ku,1800)) $chan $nick 3 Go To Hell, We do not tolerate insults towards the server } } do i just remove ($+(-ku,1800)) or what do i have to remove? can u give me the edited snippet plz thx  That looks like all you have to remove to make it a permaban.
_________________________
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
|
|
0 registered (),
2
Guests and
3
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|