From: jluehrs2 Date: Wed, 5 Sep 2007 23:13:03 +0000 (-0500) Subject: fix !help in the evalbot X-Git-Tag: 0.03~3 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=b0c01a35bf7e2d1aa7c27c23185ce2ad85a000ee;hp=7a511d751ffb3bd5172260d7474a1a0b57646349;p=luairc.git fix !help in the evalbot --- diff --git a/test/luabot.lua b/test/luabot.lua index ff83b9e..84696fb 100644 --- a/test/luabot.lua +++ b/test/luabot.lua @@ -65,7 +65,7 @@ local commands = { envs[from] = create_env() end, help = function(target, from, arg) - if not arg then + if arg == "" or not arg then irc.say(target, from .. ": Commands: !clear, !eval, !help") elseif arg == "eval" then irc.say(target, from .. ": Evaluates a Lua statement in your own persistent environment")