mirror of
https://github.com/progval/irctest.git
synced 2025-04-06 07:19:54 +00:00
fix registration to use NS instead of ACC
This commit is contained in:
@ -133,16 +133,15 @@ class OragonoController(BaseServerController, DirectoryBasedController):
|
|||||||
# part of the specification
|
# part of the specification
|
||||||
client = case.addClient(show_io=False)
|
client = case.addClient(show_io=False)
|
||||||
case.sendLine(client, 'CAP LS 302')
|
case.sendLine(client, 'CAP LS 302')
|
||||||
case.sendLine(client, 'NICK registration_user')
|
case.sendLine(client, 'NICK ' + username)
|
||||||
case.sendLine(client, 'USER r e g :user')
|
case.sendLine(client, 'USER r e g :user')
|
||||||
case.sendLine(client, 'CAP END')
|
case.sendLine(client, 'CAP END')
|
||||||
while case.getRegistrationMessage(client).command != '001':
|
while case.getRegistrationMessage(client).command != '001':
|
||||||
pass
|
pass
|
||||||
case.getMessages(client)
|
case.getMessages(client)
|
||||||
case.sendLine(client, 'ACC REGISTER {} * {}'.format(
|
case.sendLine(client, 'NS REGISTER ' + password)
|
||||||
username, password))
|
|
||||||
msg = case.getMessage(client)
|
msg = case.getMessage(client)
|
||||||
assert msg.command == '920', msg
|
assert msg.params == [username, 'Account created']
|
||||||
case.sendLine(client, 'QUIT')
|
case.sendLine(client, 'QUIT')
|
||||||
case.assertDisconnected(client)
|
case.assertDisconnected(client)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user