Code: Select all
puthelp "PRIVMSG #outhouse :This is my lame message."

Code: Select all
putchan #outhouse :"Where do my quotes belong?"

Code: Select all
puthelp "PRIVMSG #outhouse :This is my lame message."
Code: Select all
putchan #outhouse :"Where do my quotes belong?"
Code: Select all
putchan #chan "text goes here"
Code: Select all
proc putchan {dest text} {
puthelp "PRIVMSG $dest :$text"
}
Code: Select all
if {(string match "#*" $dest])} { puthelp "PRIVMSG $dest :$text" }
I have found some of the shortcuts in alltools.tcl to be excellent, namely strlwr/strupr, iscommand, and ispermowner... wish some of the tcl docs had more examples of actual usageawyeah wrote:Basically it's just a remap of the puthelp command. It will use the puthelp (slowest que) to send the msg to the channel. I don't see a need for using it. It will take some more time to read the proc putchan, why not simply use puthelp to make it go directly.
Code: Select all
if {[string index $dest 0] == "#"]} then { puthelp "PRIVMSG $dest :$text"}
For fixing that, and making it restricted to channels...
Code: Select all
if {[string index $dest 0] == "#"] || [string index $dest 0] == "!"] || [string index $dest 0] == "&"]} then { puthelp "PRIVMSG $dest :$text"}
The best "fix" would be 'file delete scripts/alltools.tcl'KrzychuG wrote:For fixing that, and making it restricted to channels...Fine now?Code: Select all
if {[string index $dest 0] == "#"] || [string index $dest 0] == "!"] || [string index $dest 0] == "&"]} then { puthelp "PRIVMSG $dest :$text"}