More tabs = gone.
This commit is contained in:
1 parent
ea775d4c98
commit
3cfe22e5c1
1 file changed
+8
-2
@@ -200,8 +200,8 @@ sub cmd_uno {
|
|||||||
|
|
||||||
# Check for at least two players.
|
# Check for at least two players.
|
||||||
if (keys %PLAYERS < 2) {
|
if (keys %PLAYERS < 2) {
|
||||||
notice($src->{svr}, $src->{nick}, 'Two players are required to play.');
|
# Not found, join the bot.
|
||||||
return;
|
_botjoin();
|
||||||
}
|
}
|
||||||
|
|
||||||
# Deal the cards.
|
# Deal the cards.
|
||||||
@@ -1166,6 +1166,12 @@ sub _delplyr {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Join the bot to a game.
|
||||||
|
sub _botjoin {
|
||||||
|
$PLAYERS{lc $src->{nick}} = [];
|
||||||
|
$NICKS{lc $src->{nick}} = $src->{nick};
|
||||||
|
}
|
||||||
|
|
||||||
# For when a player has won.
|
# For when a player has won.
|
||||||
sub _gameover {
|
sub _gameover {
|
||||||
my ($player) = @_;
|
my ($player) = @_;
|
||||||
|
|||||||
Reference in new issue
Block a user