Order by ID when retrieving MySQL commands.
Draw the game by command or if too many players leave at the beginning.

Draw means that neither team will be recorded as a winner and the game will be ended in sixty seconds.

Also added feature to set the only remaining team as winner (in case the other team leaves). When this happens, the game "soft" ends, meaning stats are locked and autobans don't count but players aren't force kicked.
Draw the game by command or if too many players leave at the beginning.

Draw means that neither team will be recorded as a winner and the game will be ended in sixty seconds.

Also added feature to set the only remaining team as winner (in case the other team leaves). When this happens, the game "soft" ends, meaning stats are locked and autobans don't count but players aren't force kicked.
Merge branch 'master' into ent
Updated !rules command to include game-specific ones.
Updated !draw and !forfeit so that it'll do checks even if you voted.

This means that you can still draw or forfeit even if you voted and then someone left (in which case maybe less votes are needed so we have enough votes now).
Updated !draw and !forfeit so that it'll do checks even if you voted.

This means that you can still draw or forfeit even if you voted and then someone left (in which case maybe less votes are needed so we have enough votes now).
Merge branch 'master' into ent
Changed automatic leave win time to 5 minutes from 15.
Updated rules: made DotA rules shorter, added unrecognized category message.
Locked stats on vote draw.
Fixed problem with the automatic win/drawgame.
Fixed problem with W3MMD SetWinner.

Turns out that W3MMD PID is actually the player color, not the player id!
Fix: if team leaves after game is over, the other team won't win.
Fix so that if someone won with W3MMD game then it won't override winner when a team leaves.