summaryrefslogtreecommitdiff
path: root/lib/rbot/message.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-05-03 19:22:51 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-05-03 19:22:51 +0200
commit88590b85a4dcd20a91b9844dfff353996bc81119 (patch)
tree74ab949cebdcc6b0f21c8f37537c4538dee435f9 /lib/rbot/message.rb
parent5079554263a9a2c8c661c1c8728b4ce1a0bbd05a (diff)
Preliminary support for the LIST command
Diffstat (limited to 'lib/rbot/message.rb')
-rw-r--r--lib/rbot/message.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb
index 31508879..ed533e9b 100644
--- a/lib/rbot/message.rb
+++ b/lib/rbot/message.rb
@@ -612,6 +612,21 @@ module Irc
end
end
+ # class to manage LIST replies
+ class ListMessage < BasicUserMessage
+ attr_accessor :list
+ def initialize(bot, server, source, target, list=Hash.new)
+ super(bot, server, source, target, "")
+ @list = []
+ end
+
+ def inspect
+ fields = ' list=' << list.inspect
+ super(fields)
+ end
+ end
+
+
# class to manage NAME replies
class NamesMessage < BasicUserMessage
attr_accessor :users