Mercurial > pidgin
comparison libpurple/log.c @ 18090:9018b785ef73
Remove an old line of code to make this behave as desired. Good catch, Mark.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 11 Jun 2007 17:36:40 +0000 |
parents | 40a9029c61c0 |
children | c0a09c56d0c5 |
comparison
equal
deleted
inserted
replaced
18089:1f6599cd2d2b | 18090:9018b785ef73 |
---|---|
702 GData *attributes; | 702 GData *attributes; |
703 GString *newmsg = NULL; | 703 GString *newmsg = NULL; |
704 | 704 |
705 tmp = msg; | 705 tmp = msg; |
706 | 706 |
707 newmsg = g_string_new(""); | |
708 | |
709 while (purple_markup_find_tag("img", tmp, &start, &end, &attributes)) { | 707 while (purple_markup_find_tag("img", tmp, &start, &end, &attributes)) { |
710 int imgid = 0; | 708 int imgid = 0; |
711 char *idstr = NULL; | 709 char *idstr = NULL; |
712 | 710 |
713 /* TODO: As implemented, this never happens */ | |
714 if (newmsg == NULL) | 711 if (newmsg == NULL) |
715 newmsg = g_string_new(""); | 712 newmsg = g_string_new(""); |
716 | 713 |
717 /* copy any text before the img tag */ | 714 /* copy any text before the img tag */ |
718 if (tmp < start) | 715 if (tmp < start) |
781 | 778 |
782 /* Continue from the end of the tag */ | 779 /* Continue from the end of the tag */ |
783 tmp = end + 1; | 780 tmp = end + 1; |
784 } | 781 } |
785 | 782 |
786 /* TODO: As implemented, this never happens */ | |
787 if (newmsg == NULL) | 783 if (newmsg == NULL) |
788 { | 784 { |
789 /* No images were found to change. */ | 785 /* No images were found to change. */ |
790 return (char *)msg; | 786 return (char *)msg; |
791 } | 787 } |