From 2ead8251de25ada98bcfa76571fecbb7c250338b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 10 Feb 2008 12:14:26 +0100 Subject: botuser: add command to reset the netmasks list --- lib/rbot/botuser.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb index 13f05f87..b388b7f4 100644 --- a/lib/rbot/botuser.rb +++ b/lib/rbot/botuser.rb @@ -461,6 +461,15 @@ class Bot Auth.manager.maskdb.remove(self, m) if self.autologin? end + # Reset Netmasks, clearing @netmasks + # + def reset_netmasks + @netmasks.each { |m| + Auth.manager.maskdb.remove(self, m) if self.autologin? + } + @netmasks.clear + end + # This method checks if BotUser has a Netmask that matches _user_ # def knows?(usr) -- cgit v1.2.3