Diff

init.lua @ 162:2950079d4319

verse: Consider a plugin as failed to load only if it returns false
author Matthew Wild <mwild1@gmail.com>
date Wed, 15 Dec 2010 11:57:23 +0000
parent 142:ea753bc81a33
child 163:48a47bca9a63
line wrap: on
line diff
--- a/init.lua	Tue Dec 14 16:04:29 2010 +0000
+++ b/init.lua	Wed Dec 15 11:57:23 2010 +0000
@@ -171,7 +171,7 @@
 function stream:add_plugin(name)
 	if require("verse.plugins."..name) then
 		local ok, err = verse.plugins[name](self);
-		if ok then
+		if ok ~= false then
 			self:debug("Loaded %s plugin", name);
 		else
 			self:warn("Failed to load %s plugin: %s", name, err);