;First $istok checks what's in front of the first word, and if it's one of the listed ones (! . @ $ §) it will trigger.
;Second $istok checks if the first word is in the list (seen s), and triggers if it is.
if ($istok(! . @ $ §,$left($1,1),32)) && ($istok(seen s,$mid($1,2-),32)) {
;This checks if the first character in the first word is @ sign, and if it is it changes the message to a public channel message.
;If you want it to always post to channel no matter what, just replace the whole line with this:
;var %m = .msg #
;If you want more than one character to trigger the public message, replace the line with this:
;var %m = $iif($istok(@ ! .,$left($1,1),32),.msg #,.notice $nick)
var %m = $iif($left($1,1) == @,.msg #,.notice $nick)