| View previous topic :: View next topic |
| Author |
Message |
romprod Halfop
Joined: 19 Oct 2001 Posts: 49
|
Posted: Fri Dec 28, 2012 5:09 pm Post subject: mc.bad_words |
|
|
I'm using mc.bad_words.tcl to filter out spammers etc which seems to be working fine but I've noticed that it misses a certain 'badword' if it's said with colour codes.
Does anyone know how to fix the script to make it pickup on the colour codes or is there something I can do to make it see the colour codes?
I'm running Bad Words v5.1.12 with Eggdrop 1.6.20
Thnx for the help. |
|
| Back to top |
|
 |
romprod Halfop
Joined: 19 Oct 2001 Posts: 49
|
Posted: Fri Dec 28, 2012 5:20 pm Post subject: |
|
|
It looks like both repeating the badword and using colour codes will escape the script from actioning the badword.
I'll try wildcards tomorrow but not sure how I would go about including the colour codes in this wildcard somehow? |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sat Dec 29, 2012 4:43 am Post subject: |
|
|
I guess you can safely replace his mc:bw:mirc_strip function with a new one:
| Code: |
proc mc:bw:mirc_strip {str} {
regsub -all {\002|\003([0-9]{1,2}(,[0-9]{1,2})?)?|\017|\026|\037} $str "" str
return $str
}
|
I can't test it nor debug it cos that thing is huge and would take quite a lot of time..  _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
|