Class: Irc::BanlistMessage

Inherits:
BasicUserMessage show all
Defined in:
lib/rbot/message.rb

Overview

class to manager Ban list replies

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, #prefixed?, #recurse_depth, #recurse_depth=, #sourceaddress, #sourcenick, strip_formatting, strip_initial_formatting, stripcolour

Constructor Details

#initialize(bot, server, source, target, message = "") ⇒ BanlistMessage

Returns a new instance of BanlistMessage.



634
635
636
637
# File 'lib/rbot/message.rb', line 634

def initialize(bot, server, source, target, message="")
  super(bot, server, source, target, message)
  @bans = []
end

Instance Attribute Details

#bansObject

the bans



632
633
634
# File 'lib/rbot/message.rb', line 632

def bans
  @bans
end

Instance Method Details

#inspectObject



639
640
641
642
# File 'lib/rbot/message.rb', line 639

def inspect
  fields = ' bans=' << bans.inspect
  super(fields)
end