# File rbot/message.rb, line 95 def initialize(bot, source, target, message) super(bot, source, target, message) @target = target @private = false @plugin = nil if target.downcase == @bot.nick.downcase @private = true @address = true @channel = nil @replyto = @sourcenick else @replyto = @target @channel = @target end if @message.gsub!(/^\s*#{bot.nick}\s*([:;,>]|\s)\s*/, "") @address = true end # free splitting for plugins @params = @message.dup if @params.gsub!(/^\s*(\S+)[\s$]*/, "") @plugin = $1.downcase @params = nil unless @params.length > 0 end end