Method: Cinch::Channel#add_user

Defined in:
lib/cinch/channel.rb

#add_user(user, modes = []) ⇒ 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 added user.

Returns:

  • (User)

    The added user



388
389
390
391
392
# File 'lib/cinch/channel.rb', line 388

def add_user(user, modes = [])
  @in_channel = true if user == @bot
  @users[user] = modes
  user
end