# HG changeset patch # User Eric Warmenhoven # Date 1004601288 0 # Node ID f84dcbcfba4b431f0b9ac302755f31198608bfda # Parent 0425dbe2927210ee4ddba362034044b0f509a6e1 [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 diff -r 0425dbe29272 -r f84dcbcfba4b src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Thu Nov 01 06:46:31 2001 +0000 +++ b/src/protocols/irc/irc.c Thu Nov 01 07:54:48 2001 +0000 @@ -584,7 +584,10 @@ break; } - id->whois_str = g_string_append(id->whois_str, word_eol[5] + (word_eol[5][0]==':')); + if (word_eol[5][0] == ':') + id->whois_str = g_string_append(id->whois_str, word_eol[5] + 1); + else + id->whois_str = g_string_append(id->whois_str, word_eol[5]); } @@ -612,7 +615,11 @@ case 301: if (id->in_whois) { id->whois_str = g_string_append(id->whois_str, "
Away: "); - id->whois_str = g_string_append(id->whois_str, word_eol[5] + (word_eol[5][0]==':')); + + if (word_eol[5][0] == ':') + id->whois_str = g_string_append(id->whois_str, word_eol[5] + 1); + else + id->whois_str = g_string_append(id->whois_str, word_eol[5]); } else irc_got_im(gc, word[4], word_eol[5], IM_FLAG_AWAY, time(NULL)); break;