lib/takosan.rb in takosan-1.2.0 vs lib/takosan.rb in takosan-1.3.0

- old
+ new

@@ -7,11 +7,11 @@ module Takosan mattr_accessor :url, :channel, :name, :icon module_function - def privmsg(message) - request('/privmsg', { 'channel' => @@channel, 'message' => message, 'name' => @@name, 'icon' => @@icon }) + def privmsg(message, **options) + request('/privmsg', options.merge({ 'channel' => @@channel, 'message' => message, 'name' => @@name, 'icon' => @@icon })) end def uri_for(path = nil) uri = URI.parse("#{@@url}/#{path}") uri.path = Pathname.new(uri.path).cleanpath.to_s