I would for example create a separate template for messages starting with /me, so the place to modify is near this line: https://github.com/Wikia/app/blob/dev/extensions/wikia/Chat2/js/views/views.js#L132. But as this affects the way Chat looks and works, I would like to have a talk with more people before implementing this.