comparison src/protocols/irc/irc.c @ 2651:f84dcbcfba4b

[gaim-migrate @ 2664] you can't rely on == returning 0 or 1. it will vary depending on compiler and architecture and a number of other things. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 01 Nov 2001 07:54:48 +0000
parents 0425dbe29272
children 65a602693286
comparison
equal deleted inserted replaced
2650:0425dbe29272 2651:f84dcbcfba4b
582 break; 582 break;
583 default: 583 default:
584 break; 584 break;
585 } 585 }
586 586
587 id->whois_str = g_string_append(id->whois_str, word_eol[5] + (word_eol[5][0]==':')); 587 if (word_eol[5][0] == ':')
588 id->whois_str = g_string_append(id->whois_str, word_eol[5] + 1);
589 else
590 id->whois_str = g_string_append(id->whois_str, word_eol[5]);
588 591
589 } 592 }
590 593
591 static void process_numeric(struct gaim_connection *gc, char *word[], char *word_eol[]) 594 static void process_numeric(struct gaim_connection *gc, char *word[], char *word_eol[])
592 { 595 {
610 handle_005(gc, word, word_eol); 613 handle_005(gc, word, word_eol);
611 break; 614 break;
612 case 301: 615 case 301:
613 if (id->in_whois) { 616 if (id->in_whois) {
614 id->whois_str = g_string_append(id->whois_str, "<BR><b>Away: </b>"); 617 id->whois_str = g_string_append(id->whois_str, "<BR><b>Away: </b>");
615 id->whois_str = g_string_append(id->whois_str, word_eol[5] + (word_eol[5][0]==':')); 618
619 if (word_eol[5][0] == ':')
620 id->whois_str = g_string_append(id->whois_str, word_eol[5] + 1);
621 else
622 id->whois_str = g_string_append(id->whois_str, word_eol[5]);
616 } else 623 } else
617 irc_got_im(gc, word[4], word_eol[5], IM_FLAG_AWAY, time(NULL)); 624 irc_got_im(gc, word[4], word_eol[5], IM_FLAG_AWAY, time(NULL));
618 break; 625 break;
619 case 303: 626 case 303:
620 handle_list(gc, &word_eol[4][1]); 627 handle_list(gc, &word_eol[4][1]);