Move onConnect to a more sensible place.
Global chat plugin I hope