summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_testing/config.yml1
-rw-r--r--scripts/quizgr.pl8
2 files changed, 5 insertions, 4 deletions
diff --git a/_testing/config.yml b/_testing/config.yml
index 4ebe499..742e127 100644
--- a/_testing/config.yml
+++ b/_testing/config.yml
@@ -61,7 +61,6 @@ whitelist:
- 'on'
- osd
- query
- - quizgr
- quizmaster-fr
- quizmaster
- quiz
diff --git a/scripts/quizgr.pl b/scripts/quizgr.pl
index 902f435..a2d36df 100644
--- a/scripts/quizgr.pl
+++ b/scripts/quizgr.pl
@@ -41,7 +41,7 @@ use strict;
use vars qw($VERSION %IRSSI);
use Irssi 20020217.1542 (); # Version 0.8.1 or perhaps get the most up to date irssi version
-$VERSION = "0.7GR02";
+$VERSION = "0.7GR03";
%IRSSI = (
authors => "Athanasius Emilius Arvanitis based on Simon Huggins quiz 0.7",
contact => "arvan",
@@ -77,6 +77,8 @@ sub load_questions($$) {
my $tag = $game->{'tag'};
my $channel = $game->{'channel'};
+ $game->{'used_questions'}=[];
+
my $server = Irssi::server_find_tag($tag);
if (!defined $server) {
@@ -540,7 +542,7 @@ sub check_answer($$$$) {
#putting it in used
if (@{$game->{'used_questions'}}){
${$game->{'usedCounter'}} = @{$game->{'used_questions'}};
- } else {my ${$game->{'usedCounter'}}=0;}
+ } else {${$game->{'usedCounter'}}=0;}
${$game->{'used_questions'}}[${$game->{'usedCounter'}}]=${$game->{'the_question'}};
@@ -566,7 +568,7 @@ sub check_answer($$$$) {
#putting it in used
if (@{$game->{'used_questions'}}){
${$game->{'usedCounter'}} = @{$game->{'used_questions'}};
- } else {my ${$game->{'usedCounter'}} =0;}
+ } else {${$game->{'usedCounter'}} =0;}
${$game->{'used_questions'}}[${$game->{'usedCounter'}}]=${$game->{'the_question'}};