lib/ikachan.rb in ikachan-0.0.1 vs lib/ikachan.rb in ikachan-0.0.2

- old
+ new

@@ -16,9 +16,14 @@ def notice(message) join request('/notice', { 'channel' => @@channel, 'message' => message }) end + def privmsg(message) + join + request('/privmsg', { 'channel' => @@channel, 'message' => message }) + end + def uri_for(path = nil) uri = URI.parse("#{@@url}/#{path}") uri.path = Pathname.new(uri.path).cleanpath.to_s uri end