lib/ircp/message.rb in ircp-1.0.0 vs lib/ircp/message.rb in ircp-1.1.0
- old
+ new
@@ -7,10 +7,10 @@
def initialize(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
@raw = options[:raw]
@prefix = options[:prefix] ? Prefix.new(options[:prefix]) : nil
@command = options[:command]
- @params = args
+ @params = args + Array(options[:params])
end
def inspect
variables = instance_variables.map { |name| "#{name.inspect}=#{instance_variable_get(name).inspect}" }
variables.unshift "#{self.class}"