equal
deleted
inserted
replaced
54 NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@", TEAMS_DIRECTORY(), teamName]; |
54 NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@", TEAMS_DIRECTORY(), teamName]; |
55 NSDictionary *teamData = [[NSDictionary alloc] initWithContentsOfFile:teamFile]; |
55 NSDictionary *teamData = [[NSDictionary alloc] initWithContentsOfFile:teamFile]; |
56 [teamFile release]; |
56 [teamFile release]; |
57 |
57 |
58 NSString *teamHashColorAndName = [[NSString alloc] initWithFormat:@"eaddteam %@ %@ %@", |
58 NSString *teamHashColorAndName = [[NSString alloc] initWithFormat:@"eaddteam %@ %@ %@", |
59 [teamData objectForKey:@"hash"], [teamColor stringValue], [teamData objectForKey:@"teamname"]]; |
59 [teamData objectForKey:@"hash"], [teamColor stringValue], [teamName stringByDeletingPathExtension]]; |
60 [self sendToEngine: teamHashColorAndName]; |
60 [self sendToEngine: teamHashColorAndName]; |
61 [teamHashColorAndName release]; |
61 [teamHashColorAndName release]; |
62 |
62 |
63 NSString *grave = [[NSString alloc] initWithFormat:@"egrave %@", [teamData objectForKey:@"grave"]]; |
63 NSString *grave = [[NSString alloc] initWithFormat:@"egrave %@", [teamData objectForKey:@"grave"]]; |
64 [self sendToEngine: grave]; |
64 [self sendToEngine: grave]; |