simonbell wrote:hm, actually that means that people can use ANY command prefix they like in the channel, ie, @authaddop and !authaddop both work no-matter what the setting in the file is.
There is no way this is happening. Have you tried it?
As noted, you should use the ${cmdprefix} method.
However, to correct some facts, there is simply no way possible for what you say above to occur.
Take a look at the following code
Code: Select all
set p "!"
bind pub - [string trim $p]test test:test
First, the pub bind does not accept masks or wildcards (pubm does). So what ever is placed in the mask field, has to be fully matched, without any wildcard processing. This leaves the single option of only one command possible.
While the $p and the "string trim" command are processed dynamicly, they are only called once, and thus produce static content. This means that after Tcl has run "[string trim $p]" once, it doesn't call it each time it tries to match somthing.