Mercurial > pidgin
comparison src/protocols/irc/irc.c @ 2650:0425dbe29272
[gaim-migrate @ 2663]
This is shorter...
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Thu, 01 Nov 2001 06:46:31 +0000 |
parents | f857ae4ddd84 |
children | f84dcbcfba4b |
comparison
equal
deleted
inserted
replaced
2649:f857ae4ddd84 | 2650:0425dbe29272 |
---|---|
582 break; | 582 break; |
583 default: | 583 default: |
584 break; | 584 break; |
585 } | 585 } |
586 | 586 |
587 if (word_eol[5][0] == ':') | 587 id->whois_str = g_string_append(id->whois_str, word_eol[5] + (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]); | |
591 | 588 |
592 } | 589 } |
593 | 590 |
594 static void process_numeric(struct gaim_connection *gc, char *word[], char *word_eol[]) | 591 static void process_numeric(struct gaim_connection *gc, char *word[], char *word_eol[]) |
595 { | 592 { |
613 handle_005(gc, word, word_eol); | 610 handle_005(gc, word, word_eol); |
614 break; | 611 break; |
615 case 301: | 612 case 301: |
616 if (id->in_whois) { | 613 if (id->in_whois) { |
617 id->whois_str = g_string_append(id->whois_str, "<BR><b>Away: </b>"); | 614 id->whois_str = g_string_append(id->whois_str, "<BR><b>Away: </b>"); |
618 | 615 id->whois_str = g_string_append(id->whois_str, word_eol[5] + (word_eol[5][0]==':')); |
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]); | |
623 } else | 616 } else |
624 irc_got_im(gc, word[4], word_eol[5], IM_FLAG_AWAY, time(NULL)); | 617 irc_got_im(gc, word[4], word_eol[5], IM_FLAG_AWAY, time(NULL)); |
625 break; | 618 break; |
626 case 303: | 619 case 303: |
627 handle_list(gc, &word_eol[4][1]); | 620 handle_list(gc, &word_eol[4][1]); |