Class: Net::IRC::ErrNicknameinuse
- Defined in:
- lib/net/irc.rb
Overview
422 <target> <nickname> :Nickname is already in use.
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
-
#nickname ⇒ Object
Returns the value of attribute nickname.
Attributes inherited from ReplyWithTarget
Attributes inherited from Reply
Attributes inherited from Message
#command, #parameters, #prefix
Instance Method Summary collapse
-
#initialize(target, nickname, text) ⇒ ErrNicknameinuse
constructor
A new instance of ErrNicknameinuse.
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
#nickname ⇒ Object
Returns the value of attribute nickname.
470 471 472 |
# File 'lib/net/irc.rb', line 470 def nickname @nickname end |