diff options
Diffstat (limited to 'plugins/NewStory/src/templates.cpp')
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 56f45a33e9..88189452cc 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -249,7 +249,11 @@ void vfMessage(int, TemplateVars *vars, MCONTACT, ItemData *item) void vfFile(int, TemplateVars *vars, MCONTACT, ItemData *item) { - vars->SetVar('M', item->getWBuf(), false); + CMStringW wszFileName(item->getWBuf()); + wszFileName.Replace('\\', '/'); + wszFileName = L"[url]file://" + wszFileName + L"[/url]"; + + vars->SetVar('M', wszFileName, false); } void vfUrl(int, TemplateVars *vars, MCONTACT, ItemData *item) |