egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mc.bad_words

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
romprod
Halfop


Joined: 19 Oct 2001
Posts: 49

PostPosted: Fri Dec 28, 2012 5:09 pm    Post subject: mc.bad_words Reply with quote

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
View user's profile Send private message
romprod
Halfop


Joined: 19 Oct 2001
Posts: 49

PostPosted: Fri Dec 28, 2012 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sat Dec 29, 2012 4:43 am    Post subject: Reply with quote

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.. Rolling Eyes
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber