Пример #1
0
def login(id):
	global me

	if id != "":	
		me = getattr(users, id, None)
		if me:			
			world.send(me.password)
			init_room(id)#init 是rooms.manager模块注册的方法
		else:
			world.note(id + u" 没有配置")
	else:
		world.note("手动登录:@id")
Пример #2
0
def _sendToken(*args):
	key = args[2][0]
	world.send(_tokens.get(key))