<gh_stars>1000+
class PresenceChannel:
    def __init__(self, name):
        if not name.startswith("presence-"):
            name = "presence-" + name

        self.name = name

    def authorized(self, application):
        return bool(application.make("request").user())

class PresenceChannel:
    def __init__(self, name):
        if not name.startswith("presence-"):
            name = "presence-" + name

        self.name = name

    def authorized(self, application):
        return bool(application.make("request").user())