Class: Irc::NickMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::NickMessage
- Defined in:
- lib/rbot/message.rb
Overview
class to pass IRC Nick changes in. @message contains the old nickame,
Instance Attribute Summary collapse
-
#is_on ⇒ Object
Returns the value of attribute is_on.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time
Instance Method Summary collapse
-
#initialize(bot, server, source, oldnick, newnick) ⇒ NickMessage
constructor
A new instance of NickMessage.
- #inspect ⇒ Object
- #newnick ⇒ Object
- #oldnick ⇒ Object
Methods inherited from BasicUserMessage
#address?, #botuser, #identified?, #parse_channel_list, #recurse_depth, #recurse_depth=, #sourceaddress, #sourcenick, strip_formatting, strip_initial_formatting, stripcolour
Constructor Details
#initialize(bot, server, source, oldnick, newnick) ⇒ NickMessage
Returns a new instance of NickMessage.
519 520 521 522 |
# File 'lib/rbot/message.rb', line 519 def initialize(bot, server, source, oldnick, newnick) super(bot, server, source, oldnick, newnick) @is_on = [] end |
Instance Attribute Details
#is_on ⇒ Object
Returns the value of attribute is_on.
518 519 520 |
# File 'lib/rbot/message.rb', line 518 def is_on @is_on end |
Instance Method Details
#inspect ⇒ Object
532 533 534 535 536 |
# File 'lib/rbot/message.rb', line 532 def inspect fields = ' old=' << oldnick fields << ' new=' << newnick super(fields) end |
#newnick ⇒ Object
528 529 530 |
# File 'lib/rbot/message.rb', line 528 def newnick return @message end |
#oldnick ⇒ Object
524 525 526 |
# File 'lib/rbot/message.rb', line 524 def oldnick return @target end |