Update of /cvsroot/gaim/gaim/src/protocols/irc
In directory usw-pr-cvs1:/tmp/cvs-serv4059
Modified Files:
irc.c
Log Message:
you can't rely on == returning 0 or 1. it will vary depending on compiler and architecture and a number of other things.
Index: irc.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/irc/irc.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- irc.c 2001/11/01 06:46:31 1.51
+++ irc.c 2001/11/01 07:54:48 1.52
@@ -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;
|