From 7a53422242d46f08e63ab807190881cfb77a1a73 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 7 Feb 2007 22:21:33 +0000 Subject: Rubify ugly unhilight_nick code --- data/rbot/plugins/quiz.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'data/rbot/plugins') 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 -- cgit v1.2.3