Class: Net::IRC::ErrNicknameinuse

Inherits:
Error show all
Defined in:
lib/net/irc.rb

Overview

422 <target> <nickname> :Nickname is already in use.

Constant Summary

Constants inherited from Message

Message::COMMAND_MAPS

Instance Attribute Summary collapse

Attributes inherited from ReplyWithTarget

#target

Attributes inherited from Reply

#text

Attributes inherited from Message

#command, #parameters, #prefix

Instance Method Summary collapse

Methods inherited from Message

command_for_number, parse, #prefix?, #to_s, #write

Constructor Details

#initialize(target, nickname, text) ⇒ ErrNicknameinuse

Returns a new instance of ErrNicknameinuse.



472
473
474
475
476
# File 'lib/net/irc.rb', line 472

def initialize(target, nickname, text)
  @nickname = nickname
  
  super(nil, 'ERR_NICKNAMEINUSE', target, @nickname, text)
end

Instance Attribute Details

#nicknameObject

Returns the value of attribute nickname.



470
471
472
# File 'lib/net/irc.rb', line 470

def nickname
  @nickname
end