diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-07 22:21:33 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-07 22:21:33 +0000 |
commit | 7a53422242d46f08e63ab807190881cfb77a1a73 (patch) | |
tree | 8439f4531ab08d8fd0a01ca6d154b495fffbec9e /data/rbot/plugins | |
parent | 09ec5acfe5a53122b0117272e1838db0207bbff9 (diff) |
Rubify ugly unhilight_nick code
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/quiz.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb index 95515ae3..2c917c0b 100644 --- a/data/rbot/plugins/quiz.rb +++ b/data/rbot/plugins/quiz.rb @@ -376,14 +376,7 @@ class QuizPlugin < Plugin # def unhilight_nick( nick ) return nick unless @bot.config['quiz.dotted_nicks'] - new_nick = "" - - 0.upto( nick.length - 1 ) do |i| - new_nick += nick[i, 1] - new_nick += "." unless i == nick.length - 1 - end - - return new_nick + return nick.split(//).join(".") end |