| View previous topic :: View next topic |
| Author |
Message |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Thu Apr 23, 2015 7:51 am Post subject: how to make eggdrop strip colors from ctcr |
|
|
i alread found this tcl and was wondering how to make it strip colors in ctcr too for whatever VERSION/TIME and what not
| Code: | catch {unbind raw - PRIVMSG *raw:irc:msg}
catch {unbind raw - PRIVMSG *raw:PRIVMSG}
bind raw - PRIVMSG striprivmsg
proc striprivmsg {f k a} {
set a [stripcodes abcgru $a]
*raw:irc:msg $f $k $a
*raw:PRIVMSG $f $k $a
}
putlog "colourstripper... Loaded" |
|
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu Apr 23, 2015 9:32 am Post subject: Re: how to make eggdrop strip colors from ctcr |
|
|
| simo wrote: | i alread found this tcl and was wondering how to make it strip colors in ctcr too for whatever VERSION/TIME and what not
...
|
Go here:
http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html
and text search to find: bind ctcr
Experiment with that bind. _________________ For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia ! |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Thu Apr 23, 2015 11:13 am Post subject: |
|
|
yea i looked there but couldnt figure it
i need to strip colors from ctcp version reply i was told that is a NOTICE
i just cant figure how to do that |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu Apr 23, 2015 12:28 pm Post subject: |
|
|
| simo wrote: | yea i looked there but couldnt figure it
i need to strip colors from ctcp version reply i was told that is a NOTICE
i just cant figure how to do that |
Play with this to see how to use
bind ctcr
| Code: |
# April 23, 2015
# http://forum.egghelp.org/viewtopic.php?p=103927#103927
bind ctcr - * ctcr_proc
proc ctcr_proc {nick uhost handle dest keyword text} {
putserv "privmsg your_nick_here :$nick $uhost $handle $dest $keyword $text"
putserv "privmsg your_nick_here :Using stripcodes :[stripcodes bcruag $text]"
}
|
Do:
.tcl putserv "privmsg some_nick_here :\001VERSION\001"
from the partyline, to make the bot send out a CTCP version
With that bind ctcp above loaded, bot will trigger on the ctcr reply to it. _________________ For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia ! |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Thu Apr 23, 2015 8:57 pm Post subject: |
|
|
| thx willyw that helped a lot apreciated |
|
| Back to top |
|
 |
|