Name adjustements

This commit is contained in:
Serraniel 2017-05-02 13:33:17 +02:00
parent 548d10cda8
commit 6844627723

View file

@ -225,7 +225,7 @@ namespace DML.Application.Classes
var extensionRequired = !fileName.EndsWith("%name%"); var extensionRequired = !fileName.EndsWith("%name%");
fileName = fileName =
fileName.Replace("%guild%", message.Server.Name) fileName.Replace("%guild%", message.Server.Name.Replace(":","").Replace("/","").Replace("\\",""))
.Replace("%channel%", message.Channel.Name) .Replace("%channel%", message.Channel.Name)
.Replace("%timestamp%", SweetUtils.DateTimeToUnixTimeStamp(message.Timestamp).ToString()) .Replace("%timestamp%", SweetUtils.DateTimeToUnixTimeStamp(message.Timestamp).ToString())
.Replace("%name%", a.Filename) .Replace("%name%", a.Filename)