lib/Zeta/blacklist.rb in zetabot-0.0.11 vs lib/Zeta/blacklist.rb in zetabot-0.0.12
- old
+ new
@@ -1,14 +1,14 @@
-BlackListStruct = Struct.new :channels, :users, :plugins
+BlackListStruct = Struct.new :channels, :users, :plugins, :urls, :masks
# Load Cached
if File.exists?(File.join(Dir.home, '.zeta', 'cache', 'blacklist.rb'))
File.open(File.join(Dir.home, '.zeta', 'cache', 'blacklist.rb')) do |file|
Blacklist = Marshal.load(file)
end
else
- Blacklist = BlackListStruct.new([], [], [])
+ Blacklist = BlackListStruct.new([], [], [], [], [])
end
## Methods
def save_blacklist()
@@ -19,7 +19,9 @@
def clear_blacklist()
Blacklist.users = []
Blacklist.plugins = []
Blacklist.channels = []
+ Blacklist.urls = []
+ Blacklist.masks = []
File.delete(File.join(Dir.home, '.zeta', 'cache', 'blacklist.rb'))
end
\ No newline at end of file