diff options
| author | 2019-06-17 21:39:43 +0100 | |
|---|---|---|
| committer | 2019-06-17 21:39:43 +0100 | |
| commit | 37fd78ff27721ddba2dba960046aba5773355081 (patch) | |
| tree | dea66db73306b16bd0a7e7dc2dadf4609004d0d1 /modules/vote.py | |
| parent | only count "\n"s (not "\r\n") that hit the wire, incase \r\n gets cut in half (diff) | |
| signature | ||
Change vote ids to be 6 chars, instead of 8
Diffstat (limited to 'modules/vote.py')
| -rw-r--r-- | modules/vote.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/vote.py b/modules/vote.py index 728c1bd5..5cccaec3 100644 --- a/modules/vote.py +++ b/modules/vote.py @@ -11,7 +11,7 @@ class Module(ModuleManager.BaseModule): def _random_id(self, channel): while True: - vote_id = binascii.hexlify(os.urandom(4)).decode("ascii") + vote_id = binascii.hexlify(os.urandom(3)).decode("ascii") if self._get_vote(channel, vote_id) == None: return vote_id |
