Class: Irc::BanlistMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::BanlistMessage
- Defined in:
- lib/rbot/message.rb
Overview
class to manager Ban list replies
Instance Attribute Summary collapse
-
#bans ⇒ Object
the bans.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time
Instance Method Summary collapse
-
#initialize(bot, server, source, target, message = "") ⇒ BanlistMessage
constructor
A new instance of BanlistMessage.
- #inspect ⇒ Object
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, ="") super(bot, server, source, target, ) @bans = [] end |
Instance Attribute Details
Instance Method Details
#inspect ⇒ Object
639 640 641 642 |
# File 'lib/rbot/message.rb', line 639 def inspect fields = ' bans=' << bans.inspect super(fields) end |