3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00
This commit is contained in:
reality 2015-01-07 21:45:54 +00:00
parent 7e968d38bb
commit 0d86dc4119

View File

@ -4,6 +4,7 @@ var api = function(dbot) {
return {
'getUrl': function(path) {
if(path.charAt(0) == '/') path = path.substr(1);
path = encodeURIComponent(path);
if(this.config.externalPath) {
return this.config.externalPath + '/' + path;
} else {