equal
deleted
inserted
replaced
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]]; |