class Irc::TopicMessage

Attributes

channel[R]

topic set on channel

info_or_set[RW]

:info if topic info, :set if topic set

timestamp[R]

topic set at (unixtime)

topic[R]

channel topic

Public Class Methods

new(bot, server, source, channel, topic=ChannelTopic.new) click to toggle source
# File lib/rbot/message.rb, line 663
def initialize(bot, server, source, channel, topic=ChannelTopic.new)
  super(bot, server, source, channel, topic.text)
  @topic = topic
  @timestamp = topic.set_on
  @channel = channel
  @info_or_set = nil
end

Public Instance Methods

inspect() click to toggle source
# File lib/rbot/message.rb, line 671
def inspect
  fields = ' topic=' << topic
  fields << ' (set on ' << timestamp << ')'
  super(fields)
end