mcbot/mcbot_engine.lua
changeset 66 d9c00a9fe9d5
parent 64 62248d5fbb24
equal deleted inserted replaced
65:2cefbe9f3ac6 66:d9c00a9fe9d5
     1 #! /usr/bin/env lua
     1 #! /usr/bin/env lua
       
     2 
       
     3 --  McBot / mcabbot project
       
     4 --
       
     5 -- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
       
     6 --
       
     7 -- This program is free software; you can redistribute it and/or modify
       
     8 -- it under the terms of the GNU General Public License as published by
       
     9 -- the Free Software Foundation; either version 2 of the License, or (at
       
    10 -- your option) any later version.
       
    11 --
       
    12 -- Please check the license in the COPYING file at the root of the tree.
       
    13 --
     2 
    14 
     3 local commands = {}
    15 local commands = {}
     4 
    16 
     5 function trim(s)
    17 function trim(s)
     6   return s:match("^%s*(.-)%s*$")
    18   return s:match("^%s*(.-)%s*$")