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.

i need a tcl that ....

Old posts that have not been replied to for several years.
Locked
E
EggLover

i need a tcl that ....

Post by EggLover »

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 ?
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Check this and this
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

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.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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.
==================================
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

He ment color, as in the purple color mirc add to actions ( /me blah )..
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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! :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
g
gemeau50
Voice
Posts: 38
Joined: Fri Jun 11, 2004 6:16 am
Location: Trois-Rivières, Canada

Re: i need a tcl that ....

Post by gemeau50 »

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"
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

.. and very few mIRC users bother changing the default.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
l
lindy
Voice
Posts: 15
Joined: Fri Oct 10, 2003 7:02 am
Location: uk
Contact:

Post by lindy »

why dont u just alter ur script so u see the action n black and not as a colour action..
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Good thinking lindy, then he wouldn't have to ban those people. Ofcourse bots doesn't see actions in purple right :P :P or do they? heh. :wink:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
l
lindy
Voice
Posts: 15
Joined: Fri Oct 10, 2003 7:02 am
Location: uk
Contact:

Post by lindy »

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 :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
Locked