lib/plugins/chat: clean Chat plugin object loading logic to avoid confusion