project_files/HedgewarsMobile/Classes/ServerSetup.m
changeset 4603 d362ab6c7f53
parent 4547 b70004a576a3
child 4976 088d40d8aba2
equal deleted inserted replaced
4600:5a3b1dbdd4c9 4603:d362ab6c7f53
   179         else if ([command isEqualToString:@"ASKPASSWORD"]) {
   179         else if ([command isEqualToString:@"ASKPASSWORD"]) {
   180             NSString *pwd = [self.systemSettings objectForKey:@"password"];
   180             NSString *pwd = [self.systemSettings objectForKey:@"password"];
   181             [self sendToServer:@"PASSWORD" withArgument:pwd];
   181             [self sendToServer:@"PASSWORD" withArgument:pwd];
   182         }
   182         }
   183         else if ([command isEqualToString:@"CONNECTED"]) {
   183         else if ([command isEqualToString:@"CONNECTED"]) {
   184             short int netProto;
   184             int netProto;
   185             char *versionStr;
   185             char *versionStr;
   186             HW_versionInfo(&netProto, &versionStr);
   186             HW_versionInfo(&netProto, &versionStr);
   187             NSString *nick = [self.systemSettings objectForKey:@"username"];
   187             NSString *nick = [self.systemSettings objectForKey:@"username"];
   188             [self sendToServer:@"NICK" withArgument:nick];
   188             [self sendToServer:@"NICK" withArgument:nick];
   189             [self sendToServer:@"PROTO" withArgument:[NSString stringWithFormat:@"%d",netProto]];
   189             [self sendToServer:@"PROTO" withArgument:[NSString stringWithFormat:@"%d",netProto]];