Fixed a bug in UNO that allowed users to join more than once.
This commit is contained in:
1 parent
05e49c0ba1
commit
79db0a2687
3 files changed
+10
-2
No files matched your search
@@ -28,6 +28,7 @@ Bug fixes:
|
||||
* Fixed an exploit in QDB that allowed users to use services fantasy commands
|
||||
with the bot's account.
|
||||
* Fixed a bug in LinkTitle that caused multi-line <title>'s to display wrong.
|
||||
* Fixed a bug in UNO that allowed users to join more than once.
|
||||
|
||||
Incompatibilities:
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
||||
|
||||
3.0 Indev
|
||||
===============================================================================
|
||||
* Fixed a bug in UNO that allowed users to join more than once.
|
||||
* Added optional uno:english option. See documentation for UNO.
|
||||
* UNO has a new config option, uno:msg, for setting what method the bot
|
||||
uses for private messages.
|
||||
|
||||
+8
-2
@@ -158,6 +158,12 @@ sub cmd_uno {
|
||||
}
|
||||
}
|
||||
|
||||
# Ensure the user is not already playing.
|
||||
if (defined $PLAYERS{lc $src->{nick}}) {
|
||||
sendmsg($src->{svr}, $src->{nick}, 'You\'re already playing.');
|
||||
return;
|
||||
}
|
||||
|
||||
# Update variables.
|
||||
$PLAYERS{lc $src->{nick}} = [];
|
||||
$NICKS{lc $src->{nick}} = $src->{nick};
|
||||
@@ -1350,7 +1356,7 @@ sub sendmsg {
|
||||
}
|
||||
|
||||
# Start initialization.
|
||||
API::Std::mod_init('UNO', 'Xelhua', '1.07', '3.0.0a8', __PACKAGE__);
|
||||
API::Std::mod_init('UNO', 'Xelhua', '1.08', '3.0.0a8', __PACKAGE__);
|
||||
# build: perl=5.010000
|
||||
|
||||
__END__
|
||||
@@ -1361,7 +1367,7 @@ UNO - Three editions of the UNO card game
|
||||
|
||||
=head1 VERSION
|
||||
|
||||
1.07
|
||||
1.08
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
|
||||
Reference in new issue
Block a user