Your call self[event](...) is the culprit. It resullts in the call self.CHAT_MSG_GUILD(...) instead of self:CHAT_MSG_GUILD(...). The latter is equivalent to self.CHAT_MSG_GUILD(self, ...).
So simply changing self[event](...) to self[event](self, ...) should do the trick.
__________________
This posting is made of 100% recycled electrons.
|