I have a mIRC bot that msg's info to my eggdrop bot (because the news script is for mIRC, but I send it to the eggdrop to announce). However, when the line of news contains certain symbols, the eggdrop outputs to the channel like this:
Eurostocks open {flat;} RWE, Repsol gain, Aviva dips (Reuters)
As you can see, it puts { } around the word (flat) that contains a symbol - in this case a semi-colon.
The TCL script I'm using to announce the info in the channel is msg_say.tcl from the egghelp library (below)
Would appreciate any ideas to get rid of this problem!
Thanks.
# this script is used to talk "anonymously" on a chan
# msg the bot using: /msg $botnick !say #chan ......
# and everything after "#chan" will be displayed in "#chan"
bind msg - !say msg_say
proc msg_say {nick uhost hand args} {
global botnick
if {[llength [lindex $args 0]]<2} {
putserv "NOTICE $nick :/msg $botnick !say <#chan> <something to say>"
} else {
set chan [lindex [lindex $args 0] 0]
if { ![validchan $chan]} {
putserv "NOTICE $nick :\"$chan\": invalid chan."
return 0
}
## FIX ME this condition is never reached
if { ![onchan $botnick $chan] } {
putserv "NOTICE $nick :je ne suis pas sur le chan \"$chan\"."
return 0
}
## END FIX ME
# comment this next 4 lines if you want to be able to talk in a chan you're not in
if { ![onchan $nick $chan] } {
putserv "NOTICE $nick :tu n'es pas sur le chan \"$chan\"."
return 0
}
set msg [lrange [lindex $args 0] 1 end]
}
putchan $chan $msg
}
putlog "msg_say.tcl by fraff"