From 09ec5acfe5a53122b0117272e1838db0207bbff9 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 7 Feb 2007 21:39:12 +0000 Subject: quiz plugin: dottification of nicks made optional, defaults to true --- data/rbot/plugins/quiz.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data') diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb index 21af8e1c..95515ae3 100644 --- a/data/rbot/plugins/quiz.rb +++ b/data/rbot/plugins/quiz.rb @@ -90,6 +90,9 @@ end # CLASS QuizPlugin ####################################################################### class QuizPlugin < Plugin + BotConfig.register BotConfigBooleanValue.new('quiz.dotted_nicks', + :default => true, + :desc => "When true, nicks in the top X scores will be camouflaged to prevent IRC hilighting") def initialize() super @@ -372,6 +375,7 @@ class QuizPlugin < Plugin # which is annoying for those not watching. Example: markey -> m.a.r.k.e.y # def unhilight_nick( nick ) + return nick unless @bot.config['quiz.dotted_nicks'] new_nick = "" 0.upto( nick.length - 1 ) do |i| -- cgit v1.2.3