summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-04-25 18:40:18 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-04-25 18:40:18 (GMT)
commit508a5e258d5de152b5b58ceca67a0135383f4fe0 (patch)
treef0a8ea959823a2cd7979597beaa84032e4197a9e /SwifTools/Linkify.cpp
parent863b3d6c73f42e316dd8416cad36b9dc3a30656b (diff)
downloadswift-508a5e258d5de152b5b58ceca67a0135383f4fe0.zip
swift-508a5e258d5de152b5b58ceca67a0135383f4fe0.tar.bz2
Don't linkify /me actions.
Resolves: #959
Diffstat (limited to 'SwifTools/Linkify.cpp')
-rw-r--r--SwifTools/Linkify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/SwifTools/Linkify.cpp b/SwifTools/Linkify.cpp
index 2ca284d..906026d 100644
--- a/SwifTools/Linkify.cpp
+++ b/SwifTools/Linkify.cpp
@@ -21,7 +21,7 @@ std::string Linkify::linkify(const std::string& input) {
for (size_t i = 0; i < input.size(); ++i) {
char c = input[i];
if (inURL) {
- if (c != ' ' && c != '\t' && c != '\n') {
+ if (c != ' ' && c != '\t' && c != '\n' && !(c == '*' && i == input.size() - 1 && input[0] == '*')) {
currentURL.push_back(c);
}
else {