I am using a bind with the hash (#) charactor in it, however this messed up the script, and somehow it is ignoring the part of the pubm that is before the # charactor (reversed commenting??)
Does the # charactor have some kind of special meaning in a bind pubm ?
Or does the special use of this charactor for script commenting cause it to be ignored in binds?
when i check the binds list with .binds, it correctly display the full bind such as 'pubm -|- *#* %s ?? %s* 5972 m:check'
I have tried removing the * from before the # and many other alternatives, it would be quite inefficient to have to use a * bind and run a regex on every line to check the proper syntax is being used.
The tcl documentation says nothing about a special meaning of the # in binds, and logically, if it was being treated as a comment then the bind would be triggering on the '*' part and not on the '* %s ?? %s*' (which is what it is doing)
The pubm binding matches against the channel name first, and because most channels contain a #, if you are wanting to use a # as well as part of your trigger you would want your binding to take the form of:
bind pubm - "% *#* % ?? *"
Of course, it would be more helpful if you were more specific in what exactly you wish for your users to type to trigger the event.