| View previous topic :: View next topic |
| Author |
Message |
_El_Chojin_ Voice
Joined: 25 Jun 2009 Posts: 2
|
Posted: Thu Jun 25, 2009 8:39 pm Post subject: Remove color from bind |
|
|
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 |
|
 |
username Op

Joined: 06 Oct 2005 Posts: 196 Location: Russian Federation, Podolsk
|
Posted: Fri Jun 26, 2009 12:44 am Post subject: |
|
|
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 |
|
 |
_El_Chojin_ Voice
Joined: 25 Jun 2009 Posts: 2
|
Posted: Fri Jun 26, 2009 4:41 am Post subject: |
|
|
Thanks, worked prefect  |
|
| Back to top |
|
 |
|