]> git.lizzy.rs Git - luairc.git/blobdiff - test/luabot.lua
fix !help in the evalbot
[luairc.git] / test / luabot.lua
index ff83b9ebe64c4d487e0283a12d3616e8e3961a93..84696fbed89324bbf567eedaaecb498db1ee8f6c 100644 (file)
@@ -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")