mirror of
https://github.com/solero/houdini.git
synced 2024-11-25 15:07:24 +00:00
Remove test handler from login module
This commit is contained in:
parent
24f3be3aa5
commit
ce4603d496
@ -1,15 +1,9 @@
|
|||||||
from Houdini import Handlers
|
from Houdini import Handlers
|
||||||
from Houdini.Handlers import XTPacket, XMLPacket
|
from Houdini.Handlers import XMLPacket
|
||||||
from Houdini.Converters import CredentialsConverter, CommaConverter
|
from Houdini.Converters import CredentialsConverter
|
||||||
|
|
||||||
|
|
||||||
@Handlers.handler(XMLPacket('login'))
|
@Handlers.handler(XMLPacket('login'))
|
||||||
async def handle_login(p, credentials: CredentialsConverter):
|
async def handle_login(p, credentials: CredentialsConverter):
|
||||||
username, password = credentials
|
username, password = credentials
|
||||||
p.logger.info('{}:{} is logging in!'.format(username, password))
|
p.logger.info('{}:{} is logging in!'.format(username, password))
|
||||||
|
|
||||||
|
|
||||||
@Handlers.handler(XTPacket('t', 'c'), pre_login=True)
|
|
||||||
@Handlers.player_in_room(100)
|
|
||||||
async def handle_test(p, numbers: CommaConverter):
|
|
||||||
print(list(numbers))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user