This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
E
EggLover
Post
by EggLover » Thu Sep 23, 2004 7:40 am
hi,
i need a tcl that kickbans users that use the /me or /ame command (that colored text) it is annoying ... in the tcl archive is one but that's with timers kind of /me flood protection that isn't what i want as soo as anybody types /me or /ame => banned
does this even exist ?
]Kami[
Owner
Posts: 590 Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:
Post
by ]Kami[ » Thu Sep 23, 2004 10:35 am
greenbear
Owner
Posts: 733 Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway
Post
by greenbear » Thu Sep 23, 2004 11:44 am
Code: Select all
setudef flag action
bind ctcp - ACTION ctcp:ban
proc ctcp:ban {nick uhost hand chan keyword text} {
if {![channel get $chan action]} {return}
putserv "MODE $chan +b [maskhost $uhost]"
}
Enable it by setting your chan +action, and you probably want to add some sort of security checks, so you don't ban op's or something ...
Last edited by
greenbear on Fri Sep 24, 2004 9:22 am, edited 1 time in total.
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Thu Sep 23, 2004 8:45 pm
He mentioned colored text:
I think he would like to do a string match for "\003" or regexp to check if the
person's action has any color is present, then only go ahead and kick/ban that person.
Code: Select all
if {([string match *\003* $text])} {
if {([regexp -all {\003} $text] >= 1)} {
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
greenbear
Owner
Posts: 733 Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway
Post
by greenbear » Thu Sep 23, 2004 10:52 pm
He ment color, as in the purple color mirc add to actions ( /me blah )..
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Thu Sep 23, 2004 10:57 pm
Err okay then. Weird though, if default mIRC text is set to black, then it is not colored but an action is colored. He probobaly doesn't know he can set the action in black color too, like change it from the text display color options!
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
gemeau50
Voice
Posts: 38 Joined: Fri Jun 11, 2004 6:16 am
Location: Trois-Rivières, Canada
Post
by gemeau50 » Fri Sep 24, 2004 4:33 am
EggLover wrote: hi,
i need a tcl that kickbans users that use the /me or /ame command (that colored text) it is annoying
If you are talking about mIRC commands /me and /ame, the purple color is set by the client (mIRC) and not by the user.
<alt>k or Icon "Colors"
Change the appearance for "Action text"
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Fri Sep 24, 2004 5:17 am
.. and very few mIRC users bother changing the default.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
lindy
Voice
Posts: 15 Joined: Fri Oct 10, 2003 7:02 am
Location: uk
Contact:
Post
by lindy » Fri Sep 24, 2004 7:51 am
why dont u just alter ur script so u see the action n black and not as a colour action..
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Fri Sep 24, 2004 7:55 am
Good thinking lindy, then he wouldn't have to ban those people. Ofcourse bots doesn't see actions in purple right
or do they? heh.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
lindy
Voice
Posts: 15 Joined: Fri Oct 10, 2003 7:02 am
Location: uk
Contact:
Post
by lindy » Fri Sep 24, 2004 8:12 am
omg u mean bots are colour blind
im devastated all this time i thought they could see the rainbow lol....
If u alter r script u wont have to worry bout banning anyone, i dunno what type of room u hve but im sure people will only moan and nag if u booting them for doing /me or /ame commands, hey there a part of chat
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Fri Sep 24, 2004 6:15 pm
One thing common to both /me & /ame is the asterisk (*) no matter what colour is used.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM