diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-07 21:39:12 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-07 21:39:12 +0000 |
commit | 09ec5acfe5a53122b0117272e1838db0207bbff9 (patch) | |
tree | aeb88e945fcd0d0b636b51821c9d4a969ffe238a /data | |
parent | 2590963515e99f6735981fd5fc0fc9ef042b22b2 (diff) |
quiz plugin: dottification of nicks made optional, defaults to true
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/quiz.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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| |