Cleaned code; PERMISSIONS! Chat channels too.

Permissions can be used for chat channels :) But I won't use it like this xD

Not finished :(