comparison plugins/history/history.js @ 31:50b7b5d287e8

Plugin history: - Use file paramater (like hangman), - Update documentation.
author David Demelier <markand@malikania.fr>
date Mon, 22 Feb 2016 13:25:31 +0100
parents 1158cffe5a5e
children aa205621d7d6
comparison
equal deleted inserted replaced
30:1ea775153cdc 31:50b7b5d287e8
52 52
53 function path(server, channel) 53 function path(server, channel)
54 { 54 {
55 var p; 55 var p;
56 56
57 if (Plugin.config["path"] !== undefined) { 57 if (Plugin.config["file"] !== undefined) {
58 p = Util.format(Plugin.config["path"], { 58 p = Util.format(Plugin.config["file"], {
59 "server": server.toString(), 59 "server": server.toString(),
60 "channel": channel 60 "channel": channel
61 }); 61 });
62 } else { 62 } else {
63 p = Plugin.cachePath + "db.json"; 63 p = Plugin.cachePath + "db.json";