More tabs = gone.

This commit is contained in:
Elijah Perrault committed 2011-03-21 14:20:19 -06:00
1 parent ea775d4c98
commit 3cfe22e5c1
7 files changed
+46 -40

No files matched your search

+8 -2
View File
@@ -200,8 +200,8 @@ sub cmd_uno {
# Check for at least two players.
if (keys %PLAYERS < 2) {
notice($src->{svr}, $src->{nick}, 'Two players are required to play.');
return;
# Not found, join the bot.
_botjoin();
}
# Deal the cards.
@@ -1166,6 +1166,12 @@ sub _delplyr {
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.
sub _gameover {
my ($player) = @_;