If you have two of this in the same file:

on *:TEXT:*:#:

Only the first one will trigger, so put the other one in another file or change it to on *:TEXT:!addquote:#: or whatever