Method: Cinch::Channel#remove_user

Defined in:
lib/cinch/channel.rb

#remove_user(user) ⇒ User?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The removed user.

Returns:

  • (User, nil)

    The removed user



396
397
398
399
# File 'lib/cinch/channel.rb', line 396

def remove_user(user)
  @in_channel = false if user == @bot
  @users.delete(user)
end