diff options
author | Mark Kretschmann <markey@web.de> | 2006-09-04 09:08:37 +0000 |
---|---|---|
committer | Mark Kretschmann <markey@web.de> | 2006-09-04 09:08:37 +0000 |
commit | 9c5bfe75338fac268d5baf476729017c5b132c08 (patch) | |
tree | eb9d266f940cdc3a5989abade3fddd1abd755e32 | |
parent | 5994535a9fd47190a54ac1a0d723cd64ec713641 (diff) |
Fix regression in the quiz plugin: The same winning messages would be repeated over and over again.
-rw-r--r-- | data/rbot/plugins/quiz.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb index 9e7aa454..eeef338e 100644 --- a/data/rbot/plugins/quiz.rb +++ b/data/rbot/plugins/quiz.rb @@ -264,7 +264,7 @@ class QuizPlugin < Plugin elsif q.rank_table.length >= 3 and m.sourcenick.to_s == q.rank_table[2][0] reply = "THE THIRD CHAMPION strikes again! Give it all #{m.sourcenick.to_s}, with #{q.rank_table[1][1].score - q.rank_table[2][1].score - 1} more points you'll reach the 2nd place! Answer was: #{q.answer}" else - reply = @win_messages[rand( @win_messages.length )] + reply = @win_messages[rand( @win_messages.length )].dup reply.gsub!( "<who>", m.sourcenick ) reply.gsub!( "<answer>", q.answer ) end |