From e7003544691b6166f90ba4fe5fa7acf906e48d1c Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 6 Feb 2007 11:34:17 +0000 Subject: Suppress a couple of warnings --- data/rbot/plugins/quiz.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot/plugins/quiz.rb') diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb index 0d1d9ee6..21af8e1c 100644 --- a/data/rbot/plugins/quiz.rb +++ b/data/rbot/plugins/quiz.rb @@ -601,7 +601,7 @@ class QuizPlugin < Plugin def cmd_top_number( m, params ) num = params[:number].to_i - return unless 1..50 === num + return if num < 1 or num > 50 chan = m.channel q = create_quiz( chan ) if q.nil? -- cgit v1.2.3