lib/cinch/plugins/links-titles.rb in cinch-links-titles-1.0.0 vs lib/cinch/plugins/links-titles.rb in cinch-links-titles-1.0.1

- old
+ new

@@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- require 'open-uri' require 'cinch' require 'cinch/toolbox' -require 'cinch-storage' +require 'cinch/storage' require 'time-lord' module Cinch::Plugins # Plugin to print URL titles in the channel. class LinksTitles @@ -21,10 +21,10 @@ listen_to :channel def initialize(*args) super - @storage = CinchStorage.new(config[:filename] || + @storage = Cinch::Storage.new(config[:filename] || 'yaml/links-titles.yaml') @storage.data[:history] ||= {} @post_stats = config[:stats].nil? ? false : config[:stats] end