plugins/version.lua

changeset 76
cecdfba8e625
parent 37
85b3f2a96edb
child 105
4234c8789cc6
--- a/plugins/version.lua	Fri Mar 25 19:20:14 2011 +0100
+++ b/plugins/version.lua	Sun Jul 24 19:16:40 2011 +0700
@@ -5,8 +5,9 @@
 function riddim.plugins.version(bot)
 	bot.stream:add_plugin("version");
 	bot.stream.version:set{
-		name = "Riddim";
-		version = "alpha";
+		name = bot.config.bot_name or "Riddim";
+		version = bot.config.bot_version or "alpha";
+		platform = bot.config.bot_platform or _VERSION;
 	};
 
 	bot:hook("commands/version", function (command)

mercurial