def send_server(*args): with users.user_list_lock: for p in users.get_pc_list(): try: if not p.online: continue p.map_send(*args) except: general.log_error("send_server error: %s"%traceback.format_exc())
def send_server(*args): with users.user_list_lock: for p in users.get_pc_list(): try: if not p.online: continue p.map_send(*args) except: general.log_error("send_server error: %s" % traceback.format_exc())
def user(pc): message = "" online_count = 0 for p in users.get_pc_list(): with p.lock: if not p.online: continue if not p.visible: continue message += "[%s] %s\n" % (p.map_obj.name, p.name) online_count += 1 message += "online count: %d" % online_count msg(pc, message)
def user(pc): message = "" online_count = 0 for p in users.get_pc_list(): with p.lock: if not p.online: continue if not p.visible: continue message += "[%s] %s\n"%(p.map_obj.name, p.name) online_count += 1 message += "online count: %d"%online_count msg(pc, message)