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 

Remove color from bind

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


Joined: 25 Jun 2009
Posts: 2

PostPosted: Thu Jun 25, 2009 8:39 pm    Post subject: Remove color from bind Reply with quote

Hi to all:
I'm trying to make a script that catch a word from a channel (with bind command) and make something., the problem is that when that word is said with a color i don't know how to remove the colour.

For example i have:
Code:

bind pub - MYWORD prword

proc prword {nick uhost hand chan arg} {
   Here i make things
}


The script works if i write:
MYWORD hello world

But if i write:
MYWORD hello world
Dont work, how can i do to make this work?

Thanks.
Back to top
View user's profile Send private message
username
Op


Joined: 06 Oct 2005
Posts: 196
Location: Russian Federation, Podolsk

PostPosted: Fri Jun 26, 2009 12:44 am    Post subject: Reply with quote

You need to use pubm bind.
For example:
Code:
bind pubm - "*word*" prword
proc prword {nick uhost hand chan arg} {
putserv "PRIVMSG $chan :$nick says $arg on $chan."
}


To remove colors use stripcodes command:
Code:
bind pubm - "*word*" prword
proc prword {nick uhost hand chan arg} {
putserv "PRIVMSG $chan :$nick says [stripcodes c "$arg"] on $chan."
}

_________________
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
Back to top
View user's profile Send private message Send e-mail Visit poster's website
_El_Chojin_
Voice


Joined: 25 Jun 2009
Posts: 2

PostPosted: Fri Jun 26, 2009 4:41 am    Post subject: Reply with quote

Thanks, worked prefect Very Happy
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