Class: Irc::KickMessage

Inherits:
BasicUserMessage show all
Defined in:
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

Attributes inherited from BasicUserMessage

#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time

Instance Method Summary collapse

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, target, channel, message = "") ⇒ KickMessage

Returns a new instance of KickMessage.



491
492
493
494
# File 'lib/rbot/message.rb', line 491

def initialize(bot, server, source, target, channel, message="")
  super(bot, server, source, target, message)
  @channel = channel
end

Instance Attribute Details

#channelObject (readonly)

channel user was kicked from



484
485
486
# File 'lib/rbot/message.rb', line 484

def channel
  @channel
end

Instance Method Details

#inspectObject



486
487
488
489
# File 'lib/rbot/message.rb', line 486

def inspect
  fields = ' channel=' << channel.to_s
  super(fields)
end