Class: Irc::NickMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::NickMessage
- Defined in:
- /home/apoc/projects/ruby/rbot/lib/rbot/message.rb
Overview
class to pass IRC Nick changes in. @message contains the old nickame,
Instance Attribute Summary (collapse)
-
- (Object) is_on
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)
-
- (NickMessage) initialize(bot, server, source, oldnick, newnick)
constructor
A new instance of NickMessage.
- - (Object) inspect
- - (Object) newnick
- - (Object) oldnick
Methods inherited from BasicUserMessage
#address?, #botuser, #identified?, #parse_channel_list, #prefixed?, #recurse_depth, #recurse_depth=, #sourceaddress, #sourcenick, strip_formatting, strip_initial_formatting, stripcolour
Constructor Details
- (NickMessage) initialize(bot, server, source, oldnick, newnick)
Returns a new instance of NickMessage
564 565 566 567 568 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 564 def initialize(bot, server, source, oldnick, newnick) super(bot, server, source, oldnick, newnick) @address = (source == @bot.myself) @is_on = [] end |
Instance Attribute Details
- (Object) is_on
Returns the value of attribute is_on
563 564 565 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 563 def is_on @is_on end |
Instance Method Details
- (Object) inspect
578 579 580 581 582 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 578 def inspect fields = ' old=' << oldnick fields << ' new=' << newnick super(fields) end |
- (Object) newnick
574 575 576 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 574 def newnick return @message end |
- (Object) oldnick
570 571 572 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 570 def oldnick return @target end |