]> git.lizzy.rs Git - luairc.git/commitdiff
fix !help in the evalbot
authorjluehrs2 <jluehrs2@uiuc.edu>
Wed, 5 Sep 2007 23:13:03 +0000 (18:13 -0500)
committerjluehrs2 <jluehrs2@uiuc.edu>
Wed, 5 Sep 2007 23:13:03 +0000 (18:13 -0500)
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")