Attempt to kick a user from a channel.

        If a message is not provided, defaults to own nick.
500730
def kick(self, channel, nick, message=None):
        
        self.send("KICK", channel, nick, ":%s" % (message or self.user.nick))
923302
def unsubscribe(self, message, handler):
        '''
        
        '''
        with self._lock:
            self._subscribers[message].remove(WeakCallable(handler))
1268079
def channels_remove_owner(self, room_id, user_id, **kwargs):
        """"""
        return self.__call_api_post('channels.removeOwner', roomId=room_id, userId=user_id, kwargs=kwargs)
1134506
def signedOn(self):
        """"""
        log.info("Signed on as %s.", self.nickname)
        if not self.password:
            # We aren't wating for auth, join all the channels
            self.joinChannels()
        else:
            self.msg("NickServ", "IDENTIFY %s" % self.password)
959368
def unsubscribe(self, channel, *channels):
        
        conn = self._pool_or_conn
        return conn.execute_pubsub(b'UNSUBSCRIBE', channel, *channels)
723129
def kick_chat_member(self, *args, **kwargs):
        """"""
        return kick_chat_member(*args, **self._merge_overrides(**kwargs)).run()
373771
def change_nick(self, new_nick):
        """"""

        if self.logged_in:
            raise RuntimeError("User must be logged out")
        self.__verify_username(new_nick)

        self.conn.make_call("command", self.nick, "nick", new_nick)
        self.nick = new_nick
840984
async def kickban(self, channel, target, reason=None, range=0):
        
        await self.ban(channel, target, range)
        await self.kick(channel, target, reason)
661964
async def kick(self, channel, target, reason=None):
        
        if not self.in_channel(channel):
            raise NotInChannel(channel)

        if reason:
            await self.rawmsg('KICK', channel, target, reason)
        else:
            await self.rawmsg('KICK', channel, target)
411802
def deregister(self, subscriber):
        """"""
        try:
            logger.debug('Subscriber left')
            self.subscribers.remove(subscriber)
        except KeyError:
            logger.debug(
                'Error removing subscriber: ' +
                str(subscriber))
340581
def finish(request, socket, context):
    
    try:
        user = context["user"]
    except KeyError:
        return
    left = {"action": "leave", "name": user.name, "id": user.id}
    socket.broadcast_channel(left)
    user.delete()
1320757
def unsubscribe(self, *args):
        
        if args:
            args = list_or_args(args[0], args[1:])
            channels = self._normalize_keys(dict.fromkeys(args))
        else:
            channels = self.channels
        self.pending_unsubscribe_channels.update(channels)
        return self.execute_command('UNSUBSCRIBE', *args)
768002
def delete(self, user, name):
        

        uri = self.client.remote + '/users/{}/feeds/{}'.format(user, name)

        resp = self.client.session.delete(uri)
        return resp.status_code
2935
def remove_user(nick)
      @mutex.synchronize do
        channels = Set.new

        @channels.each do |channel|
          if channel.remove_user(nick)
            channels << channel
          end
        end

        channels
      end
    end
117183
def unban(user, reason = nil)
      API::Server.unban_user(@bot.token, @id, user.resolve_id, reason)
    end
88584
def unsubscribe(self, channel):
        
        try:
            CHANNELS[channel].remove(self.socket.session.session_id)
            self.channels.remove(channel)
        except ValueError:
            return False
        return True
757483
public function ircKick($channel, $user, $comment = null)
    {
        $this->queueIrcRequest('KICK', [ $channel, $user, $comment ]);
    }