aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-17 21:39:43 +0100
committerGravatar jesopo2019-06-17 21:39:43 +0100
commit37fd78ff27721ddba2dba960046aba5773355081 (patch)
treedea66db73306b16bd0a7e7dc2dadf4609004d0d1 /modules
parentonly 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')
-rw-r--r--modules/vote.py2
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