Skip to content

Commit

Permalink
Tidy up and some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Jan 16, 2011
1 parent a1173cc commit d1b704a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions TNStropheClient.j
Expand Up @@ -129,7 +129,8 @@

- (void)connect
{
[_connection registerSelector:@selector(_didReceivePing:) ofObject:self withDict:[CPDictionary dictionaryWithObjectsAndKeys:@"iq", @"name", @"get", @"type"]];
var pingDict = [CPDictionary dictionaryWithObjectsAndKeys:@"iq", @"name", @"get", @"type"];
[_connection registerSelector:@selector(_didReceivePing:) ofObject:self withDict:pingDict];
[_connection connectWithJID:_JID andPassword:_password];
}

Expand All @@ -149,17 +150,17 @@
{
_userPresenceShow = TNStropheContactStatusOffline;
_userPresenceStatus = @"";
[roster clear];
[_roster clear];
}

- (void)onStropheConnectFail:(id)aConnection
{
[roster clear];
[_roster clear];
}

- (void)onStropheError:(id)aConnection
{
[roster clear];
[_roster clear];
}


Expand Down

0 comments on commit d1b704a

Please sign in to comment.