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.

Ignoring Color Codes

Old posts that have not been replied to for several years.
Locked
k
kenshinxl

Ignoring Color Codes

Post by kenshinxl »

Hi, is it possible in eggdrop, to let it directly ignore all codes in the channel and queries?

like mIRC's ^/ignore -k *!*@*
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You can use a small tcl script with a filter to to filter out all color codes, in channel texts, channel actions, channel notices and private messages/queries, private actions and private notices.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The eggdrop dosen't have a *built in* procedure for this, some IRCD servers have. Check the IRC server the eggdrop sits for an existing user mode to filter them out. Or, as sugested by awyeah invent an procedure to do it.
Once the game is over, the king and the pawn go back in the same box.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Well on DALnet we have a channel mode +c to filter out colors, but not bolds and underlines... maybe some networks have other modes for channels as well as users.

As for the filter, it is quite simple, search the ppslim filter in this forum you will find many results. Use it... thats what I use its very effective or if you want you can make a small filter with regsub -all yourself.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
k
kenshinxl

Post by kenshinxl »

cool, thx guys, that helps alot. i'll try that ppslim script (my eggdrop is on unreal 3.2.1 and anope 1.7.4 that is an ircd module but it does not strip public channel codes)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Oh, one more thing I remembered.
There is built in command for stripping.

Well versions 1.6.15 or greater have it.
Type '.help strip' in DCC (partyline) with the bot and you can check it out.

Code: Select all

<adapter> *** awyeah joined the party line.
<awyeah> .help strip
<adapter> [15:57] #awyeah# help strip
<adapter> ###  strip [modes]
<adapter>    Allows you to remove embedded 'attribute' codes your partyline output. Valid
<adapter>    options are:
<adapter>       b - remove all boldface codes
<adapter>       c - remove all color codes
<adapter>       r - remove all reverse video codes
<adapter>       u - remove all underline codes
<adapter>       a - remove all ANSI codes
<adapter>       g - remove all ctrl-g (bell) codes
<adapter>  
<adapter>    The mode can also be a modifier like '+c' or '-bu' or '+ru-c'. If
<adapter>    you omit modes, it will show your current setting.
<adapter>  
<adapter> See also: fixcodes
<adapter>  
<adapter> ###  strip <user> [modes]
<adapter>    Set the strip level of another user. A master can't set their own strip
<adapter>    flags without prefixing the modes with a '+' or '-'.
Eh, but I remember this is just for the partyline (DCC) output and not for channel texts and messages.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

He wanted to strip colour codes for channel and queries, not for party line. Anyway, good point tho. :mrgreen:

Quote from UnrealIRCD's documentation for channel modes:
S - Strips all incoming colors
c - No ANSI color can be sent to the channel
Once the game is over, the king and the pawn go back in the same box.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Thats why I in the end mentioned partyline, as I forgot before.
I wanted to delete the post, anyway.. nevermind.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked