Rename welcome to iam

This commit is contained in:
Tomasz Fluxid Kowalczyk 2012-01-28 02:43:39 +01:00
parent 160508ad29
commit 43f2afd50d

View File

@ -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',