mcbot/cmds/wtf.lua
changeset 67 5c756a9d7d8c
parent 66 d9c00a9fe9d5
equal deleted inserted replaced
66:d9c00a9fe9d5 67:5c756a9d7d8c
    10 -- your option) any later version.
    10 -- your option) any later version.
    11 --
    11 --
    12 -- Please check the license in the COPYING file at the root of the tree.
    12 -- Please check the license in the COPYING file at the root of the tree.
    13 --
    13 --
    14 
    14 
    15 local wtfdbfile = "/home/mikael/.mcabber/lua/mcbot/wtfdb.txt"
    15 local home = os.getenv("HOME")
       
    16 local wtfdbfile = home.."/.mcabber/mcabbot/mcbot/wtfdb.txt"
       
    17 home = nil
    16 
    18 
    17 local wtf = { ["desc"] = "Acronym dictionary" }
    19 local wtf = { ["desc"] = "Acronym dictionary" }
    18 
    20 
    19 function wtf.cmd (args)
    21 function wtf.cmd (args)
    20     local r = {}
    22     local r = {}