diff options
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/botuser.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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)
|