Well, several things. First, the way you are processing your msg, you would need to bind pub, not pubm. Secondly, there is no TCL command notice, it is rather:
putserv "NOTICE $nick :Sorry... blah"
Code is generally lousy, but will probably work if you change those two things.
p.s.
You may want to consider changing flags field in bind command, cause as you have it now, everyone can op themselves. Change it to something like n|n or at least o|o. Also, unless you make a mechanisam that will listen only to users who logged in, anyone who matches certain hostmask will be able to use the command. Public commands are very dangerous and imho lame. I cannot think of a reason why any comand should be public. A priv msg to bot or even better partyline commands are the adequate solution.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
Can't really tell you more than i allready did about organizing your code. It would become writting it for you then.
As for pub and pubm, read doc/tcl-commands.doc for info on it. Use search string "bind pub".
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.