X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fautoop.rb;h=e910bcd91d07de2957bd1488711a68b518e28a79;hb=297c80c7632e76e5c5a55cabad57154706911b57;hp=212da27bc9769da105e12cbccf951e3b4461f4c1;hpb=0153b9187f957fcfcea9cc996e21c8c8c92db468;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/autoop.rb b/data/rbot/plugins/autoop.rb index 212da27b..e910bcd9 100644 --- a/data/rbot/plugins/autoop.rb +++ b/data/rbot/plugins/autoop.rb @@ -1,5 +1,5 @@ class AutoOP < Plugin - BotConfig.register BotConfigBooleanValue.new('autoop.on_nick', + Config.register Config::BooleanValue.new('autoop.on_nick', :default => true, :desc => "Determines if the bot should auto-op when someone changes nick and the new nick matches a listed netmask") @@ -92,3 +92,5 @@ plugin = AutoOP.new plugin.map 'autoop list', :action => 'list' plugin.map 'autoop add :mask [*channels]', :action => 'add' plugin.map 'autoop rm :mask [*channels]', :action => 'rm' + +plugin.default_auth('*',false)