diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-27 15:42:22 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-27 15:42:22 +0000 |
commit | 3436bfa6059138bdb2007ae0a97a7d9d313e83c7 (patch) | |
tree | eb4be4a6207f1997e6a6c47c9111f6137962ce9a /MySpace/formatting.cpp | |
parent | 1a6e26b0a84571eadb2156e5e18b8278f07ad754 (diff) |
remove <icon tags
remove unecessary icon flags in all contacts
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@304 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'MySpace/formatting.cpp')
-rw-r--r-- | MySpace/formatting.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MySpace/formatting.cpp b/MySpace/formatting.cpp index cd27f65..d6b4055 100644 --- a/MySpace/formatting.cpp +++ b/MySpace/formatting.cpp @@ -63,6 +63,12 @@ void strip_tags(char *buff) { // add a space after a link in case there's something inside the <a></a> tags
if(buff[in] && buff[in] != ' ' && buff[in] != '\r' && buff[in] != '\n' && buff[in] != '\t')
buff[out++] = ' ';
+ } else if(buff[in] == '<' && buff[in + 1] == 'i') {
+ if(buff[in + 2] == 'c' && buff[in + 3] == 'o' && buff[in + 4] == 'n') { // <icon... (otherwise it could be and '<i...' tag, which is a smiley thing (see below)
+ while(buff[in] && buff[in] != '>') in++;
+ in++;
+ } else
+ buff[out++] = buff[in++];
} else
buff[out++] = buff[in++];
}
|