changeset 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
files src/protocols/irc/irc.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Thu Nov 01 06:42:51 2001 +0000
+++ b/src/protocols/irc/irc.c	Thu Nov 01 06:46:31 2001 +0000
@@ -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;