Code: Select all
bind filt - * chatBold
proc chatBold {i t} {
if {![string match .* $t] && ![catch {getchan $i}]} {set t \002$t\002} {set t}
}
however, no error is a good starting point, got workin' on it.<gianfi> funziona questo cazzo di bold?
Maybe there's a misunderstood:Did you try to send bold text from your client with echo on (or watching from another linked bot)?
Yes, I know, infact I look from remote bots:You realize that the script on the bot can't change how your client renders your local echo, right?
That's what the script does on my eggdrop 1.6.13. Now I've also tested it on a 1.6.15, and it worked there too. This script will add \002 to the start and end of every message sent FROM the bot the script is loaded on. So it won't touch text typed by users on other bots. Is that what you want maybe?FIDe` wrote:I want to type NO BOLD text in partyline, and I want that all text written in partyline will be displayed as BOLD to other users in partyline; sorry if my english is no good
Code: Select all
bind filt - * chatBold
proc chatBold {i t} {
if {![string match .* $t] && ![catch {getchan $i}]} {set t \002$t\002} {set t}
}
Code: Select all
bind filt - * nb_cmdcast
if {!$nb_cmdcast} {
unbind filt - * nb_cmdcast
rename nb_cmdcast ""
}
<snip>
proc nb_cmdcast {idx text} {
global nb_castfilter
set hand [idx2hand $idx] ; set cmd [string tolower [lindex [split $text] 0]]
if {![catch {getchan $idx} chan]} {
if {$chan == -1} {
set cmd .[string trimleft $cmd "."]
} elseif {![string match ".*" $cmd]} {
return $text
}
if {[lsearch -exact $nb_castfilter $cmd] != -1} {
nb_sendcmd * rbroadcast "#$hand# [string trimleft [lindex [split $text] 0] "."] .."
} else {
nb_sendcmd * rbroadcast "#$hand# [string trimleft [string range $text 0 399] "."]"
}
}
return $text
}