Exemple #1
0
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())
Exemple #2
0
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())
Exemple #3
0
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)
Exemple #4
0
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)