Update of /cvsroot/gaim/gaim/src/protocols/irc
In directory usw-pr-cvs1:/tmp/cvs-serv25102
Modified Files:
irc.c
Log Message:
This is shorter...
Index: irc.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/irc/irc.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- irc.c 2001/11/01 06:42:51 1.50
+++ irc.c 2001/11/01 06:46:31 1.51
@@ -584,10 +584,7 @@
break;
}
- 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]);
+ id->whois_str = g_string_append(id->whois_str, word_eol[5] + (word_eol[5][0]==':'));
}
@@ -615,11 +612,7 @@
case 301:
if (id->in_whois) {
id->whois_str = g_string_append(id->whois_str, "<BR><b>Away: </b>");
-
- 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]);
+ id->whois_str = g_string_append(id->whois_str, word_eol[5] + (word_eol[5][0]==':'));
} else
irc_got_im(gc, word[4], word_eol[5], IM_FLAG_AWAY, time(NULL));
break;
|