You didn't phrase the question very well.
$regml(1) on line 7 would contain either "joke" or "fact". The script needs to know that later. That's not where you should be making changes.
They tokenized $sock($sockname).mark on line 18, so $1-2 contains '.msg #'. I haven't fully examined the script, but I believe you should be focusing on lines 50 & 56.
How would you phrase the qestion instead of "How can I change the output to channel?"?
And you obviously saw I was tampering with the wrong line in the script. I don't see anything wrong with the question itself though.
I am not very good at scripting so of course I made that mistake.
Ah okay. Thanks. Not even sure where I can add the extra text that I want there either. I'll just try randomly and see what works.
Edit: Added the extra text I wanted with some random testing. Thanks for pointing out which lines.
it is already set to msg the channel