i need a script that:
!settopic <sometext> obviously, sets a new topic 'sometext'
!appendtopic <somemoretext> reads and then appends to the current topic
any scripting wizards fancy writing it for me?

Code: Select all
bind pub n "!settopic" pub:topic
bind pub n "!appendtopic" pub:append
proc pub:topic {nick host hand chan args} {
putserv "topic $chan :$args"
}
proc pub:append {nick host hand chan args} {
putserv "topic $chan :[topic $chan], $args"
}
Haven't you looked in the TCL Archives? I just looked, and there are 29 different topic related scripts on this site alone...none of those will work?bruhv wrote:can't find anything with search, and googled for hours with no success...
Code: Select all
bind pub o "!settopic" pub:topic
bind pub o "!appendtopic" pub:append
proc pub:topic {nick host hand chan args} {
putserv "topic $chan :$args"
}
proc pub:append {nick host hand chan args} {
set old [topic $chan]
putserv "topic $chan :$old - $args"
}
putlog "* topicappend.tcl loaded."