comparison libpurple/protocols/oscar/oscar.c @ 25450:cc9fb95cede5

Remove a wee bit of trailing whitespace
author Mark Doliner <mark@kingant.net>
date Tue, 03 Mar 2009 20:25:25 +0000
parents 4b8c4870b13a
children 9d931c8e9d90
comparison
equal deleted inserted replaced
25449:375f82b53e95 25450:cc9fb95cede5
4811 away = g_strdup(""); 4811 away = g_strdup("");
4812 } 4812 }
4813 else 4813 else
4814 { 4814 {
4815 char *status_text = NULL; 4815 char *status_text = NULL;
4816 4816
4817 htmlaway = purple_status_get_attr_string(status, "message"); 4817 htmlaway = purple_status_get_attr_string(status, "message");
4818 if ((htmlaway == NULL) || (*htmlaway == '\0')) 4818 if ((htmlaway == NULL) || (*htmlaway == '\0'))
4819 htmlaway = purple_status_type_get_name(status_type); 4819 htmlaway = purple_status_type_get_name(status_type);
4820 4820
4821 /* ICQ 6.x seems to use an available message for all statuses so set one */ 4821 /* ICQ 6.x seems to use an available message for all statuses so set one */
4822 if (od->icq) 4822 if (od->icq)
4823 { 4823 {
4824 status_text = purple_markup_strip_html(htmlaway); 4824 status_text = purple_markup_strip_html(htmlaway);
4825 /* If the status_text is longer than 251 characters then truncate it */ 4825 /* If the status_text is longer than 251 characters then truncate it */
4826 if (strlen(status_text) > MAXAVAILMSGLEN) 4826 if (strlen(status_text) > MAXAVAILMSGLEN)
4827 { 4827 {
4831 aim_srv_setextrainfo(od, FALSE, 0, TRUE, status_text, NULL); 4831 aim_srv_setextrainfo(od, FALSE, 0, TRUE, status_text, NULL);
4832 } 4832 }
4833 g_free(status_text); 4833 g_free(status_text);
4834 4834
4835 /* Set a proper away message for icq too so that they work for old third party clients */ 4835 /* Set a proper away message for icq too so that they work for old third party clients */
4836 4836
4837 away = purple_prpl_oscar_convert_to_infotext(htmlaway, &awaylen, &away_encoding); 4837 away = purple_prpl_oscar_convert_to_infotext(htmlaway, &awaylen, &away_encoding);
4838 4838
4839 if (awaylen > od->rights.maxawaymsglen) 4839 if (awaylen > od->rights.maxawaymsglen)
4840 { 4840 {
4841 gchar *errstr; 4841 gchar *errstr;