mcbot/mcbot_engine.lua
changeset 19 96e08713cb6a
parent 18 615c9b336207
child 21 bc5d611e6d6f
--- a/mcbot/mcbot_engine.lua	Thu Apr 15 19:21:41 2010 +0200
+++ b/mcbot/mcbot_engine.lua	Thu Apr 15 20:22:36 2010 +0200
@@ -47,6 +47,13 @@
             if lccmd == name then
                 return obj.cmd(arg, botdata, cmd)
             end
+            if obj.aliases then
+                for i, alias in ipairs(obj.aliases) do
+                    if lccmd == alias then
+                        return obj.cmd(arg, botdata, cmd)
+                    end
+                end
+            end
         end
     else
         -- Ignore smileys