Fix autologout bug
[uccvend-vendserver.git] / sql-edition / servers / VendServer.py
index ccee841..365f9d4 100755 (executable)
@@ -105,7 +105,7 @@ def scroll_options(username, mk, welcome = False):
                c = c.strip()
                (slot_num, price, slot_name) = c.split(' ', 2)
                if slot_name == 'dead': continue
-               choices += '%s-(%sc)-%s8'%(slot_name, price, slot_num)
+               choices += '%s-(%sc)-%s8 '%(slot_name, price, slot_num)
 
 #      we don't want to print snacks for now since it'll be too large
 #      and there's physical bits of paper in the machine anyway - matt
@@ -230,6 +230,7 @@ def reset_idler(v, vstatus, t = None):
        idler = GreetingIdler(v, t)
        vstatus.time_of_next_idlestep = time()+idler.next()
        vstatus.time_of_next_idler = None
+       vstatus.time_to_autologout = None
        vstatus.change_state(STATE_IDLE, 1)
 
 def choose_idler():

UCC git Repository :: git.ucc.asn.au