Class: Irc::JoinMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::JoinMessage
- Defined in:
- /home/apoc/projects/ruby/rbot/lib/rbot/message.rb
Overview
class to manage channel joins
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) channel
readonly
channel joined.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time
Instance Method Summary (collapse)
-
- (JoinMessage) initialize(bot, server, source, channel, message = "")
constructor
A new instance of JoinMessage.
- - (Object) inspect
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
- (JoinMessage) initialize(bot, server, source, channel, message = "")
Returns a new instance of JoinMessage
703 704 705 706 707 708 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 703 def initialize(bot, server, source, channel, ="") super(bot, server, source, channel, ) @channel = channel # in this case sourcenick is the nick that could be the bot @address = (source == @bot.myself) end |
Instance Attribute Details
- (Object) channel (readonly)
channel joined
696 697 698 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 696 def channel @channel end |
Instance Method Details
- (Object) inspect
698 699 700 701 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 698 def inspect fields = ' channel=' << channel.to_s super(fields) end |