|
# File rbot/message.rb, line 31
def initialize(bot, source, target, message)
@time = Time.now
@bot = bot
@source = source
@address = false
@target = target
@message = BasicUserMessage.stripcolour message
# split source into consituent parts
if source =~ /^((\S+)!(\S+))$/
@sourcenick = $2
@sourceaddress = $3
end
if target && target.downcase == @bot.nick.downcase
@address = true
end
end
|