You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. start game using !start
2. add minimum 4 players using !join
3. !start game
4. Use a 5th person to !del players, and !end game
Non players should not be able to do anything to the game.
This is the bot running on #leifswolfbot
Going through the code, it appears that there is absolutely no validation on
the !end command
whatsoever.
http://code.google.com/p/ircbot-collection/source/browse/trunk/wolfbot.py#809
I think it would be prudent to set it up so that only living players can send
messages to the bot
in a game in progress, instead of putting validation into each command.
Original issue reported on code.google.com by vert...@gmail.com on 25 May 2008 at 6:08
The text was updated successfully, but these errors were encountered:
http://code.google.com/p/ircbot-collection/source/browse/trunk/wolfbot.py#927
I think the correct fix would be to change the check to not accept commands
from people NOT in the group of
living players. (instead of checking the group of dead players) This fix most
of the issues.
Attached find an untested patch that fixes the problem.
Original comment by vert...@gmail.com on 26 May 2008 at 7:57
thinking about it again, here's an updated patch which leaves the dead player
check only for when the game is
actually running (otherwise nobody could join)
Original comment by vert...@gmail.com on 26 May 2008 at 8:11
Original issue reported on code.google.com by
vert...@gmail.com
on 25 May 2008 at 6:08The text was updated successfully, but these errors were encountered: