Module onChat event script reworked