X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fmessage.rb;h=ed533e9b0ccfc8b57deec4965bd7adfcb5b18eb5;hb=498a240496b65b897572e3fde3ef19b296e9c003;hp=8fc96490f2076073d0d12c199cb023ca2ccb3746;hpb=f244e66650f76559232cbbdc2a336c546f87e7ab;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb index 8fc96490..ed533e9b 100644 --- a/lib/rbot/message.rb +++ b/lib/rbot/message.rb @@ -30,7 +30,7 @@ module Irc end - # Define standard IRC attriubtes (not so standard actually, + # Define standard IRC attributes (not so standard actually, # but the closest thing we have ...) Bold = "\002" Underline = "\037" @@ -72,7 +72,7 @@ module Irc :dark_gray => 14, :lightgray => 15, :light_gray => 15, - :white => 16 + :white => 0 } # Convert a String or Symbol into a color number @@ -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