Rename welcome to iam
This commit is contained in:
parent
160508ad29
commit
43f2afd50d
@ -61,7 +61,7 @@ class SyncProtocol(LineReceiver):
|
|||||||
self._send('error', error)
|
self._send('error', error)
|
||||||
self._drop()
|
self._drop()
|
||||||
|
|
||||||
def _handle_init_welcome(self, arg):
|
def _handle_init_iam(self, arg):
|
||||||
self.factory.add_watcher(self, arg.strip())
|
self.factory.add_watcher(self, arg.strip())
|
||||||
self.state = 'connected'
|
self.state = 'connected'
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ class SyncProtocol(LineReceiver):
|
|||||||
|
|
||||||
states = dict(
|
states = dict(
|
||||||
init = dict(
|
init = dict(
|
||||||
welcome = '_handle_init_welcome',
|
iam = '_handle_init_iam',
|
||||||
),
|
),
|
||||||
connected = dict(
|
connected = dict(
|
||||||
state = '_handle_connected_state',
|
state = '_handle_connected_state',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user