1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-08 20:34:05 +02:00

Allow custom .js files in plugin folders when prefixed by 'user.'

This commit is contained in:
chylex 2016-09-04 03:50:35 +02:00
parent 85d5160782
commit 81aa30b2ec

View File

@ -93,8 +93,8 @@ private static bool LoadEnvironments(string path, Plugin plugin, out string erro
if (environment != PluginEnvironment.None){
plugin.Environments |= environment;
}
else{
error = "Unknown script file: "+file;
else if (!file.StartsWith("user.")){
error = "Unknown script file: "+file+". All custom script files have to be in the following naming style: user."+file;
return false;
}
}