Class: Irc::KickMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::KickMessage
- Defined in:
- /home/apoc/projects/ruby/rbot/lib/rbot/message.rb
Overview
class to manage IRC KICKs address?
can be used as a shortcut
to see if the bot was kicked, basically, target
was kicked
from channel
by source
with message
Instance Attribute Summary (collapse)
-
- (Object) channel
readonly
channel user was kicked from.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time
Instance Method Summary (collapse)
-
- (KickMessage) initialize(bot, server, source, target, channel, message = "")
constructor
A new instance of KickMessage.
- - (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
- (KickMessage) initialize(bot, server, source, target, channel, message = "")
Returns a new instance of KickMessage
536 537 538 539 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 536 def initialize(bot, server, source, target, channel, ="") super(bot, server, source, target, ) @channel = channel end |
Instance Attribute Details
- (Object) channel (readonly)
channel user was kicked from
529 530 531 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 529 def channel @channel end |
Instance Method Details
- (Object) inspect
531 532 533 534 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 531 def inspect fields = ' channel=' << channel.to_s super(fields) end |