changeset 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
files src/protocols/irc/irc.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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, "<BR><b>Away: </b>");
-			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;