# HG changeset patch # User Mikael Berthe # Date 1354030577 -3600 # Node ID 5c756a9d7d8cc9548dd1efaeb8b21d52abdb053d # Parent d9c00a9fe9d5c21fa5aea488449ea17c97e1af14 Quick'n dirty hack to remove hardcoded paths diff -r d9c00a9fe9d5 -r 5c756a9d7d8c mcabbot.lua --- a/mcabbot.lua Tue Nov 27 16:26:04 2012 +0100 +++ b/mcabbot.lua Tue Nov 27 16:36:17 2012 +0100 @@ -13,8 +13,8 @@ local home = os.getenv("HOME") package.path = package.path.. - ";"..home.."/.mcabber/lua/?.lua".. - ";"..home.."/.mcabber/lua/mcbot/?.lua" + ";"..home.."/.mcabber/mcabbot/?.lua".. + ";"..home.."/.mcabber/mcabbot/mcbot/?.lua" home = nil require "mcbot.mcbot_engine" diff -r d9c00a9fe9d5 -r 5c756a9d7d8c mcbot/cmds/bofh.lua --- a/mcbot/cmds/bofh.lua Tue Nov 27 16:26:04 2012 +0100 +++ b/mcbot/cmds/bofh.lua Tue Nov 27 16:36:17 2012 +0100 @@ -1,5 +1,7 @@ -local excusefile = "/home/mikael/.mcabber/lua/mcbot/bofh_excuses.txt" +local home = os.getenv("HOME") +local excusefile = home.."/.mcabber/mcabbot/mcbot/bofh_excuses.txt" +home = nil local bofh = { ["desc"] = "Give a BOFH excuse", ["aliases"] = { "excuse" } } diff -r d9c00a9fe9d5 -r 5c756a9d7d8c mcbot/cmds/rfc.lua --- a/mcbot/cmds/rfc.lua Tue Nov 27 16:26:04 2012 +0100 +++ b/mcbot/cmds/rfc.lua Tue Nov 27 16:36:17 2012 +0100 @@ -15,7 +15,9 @@ -- TXT index database, retrieved from -- -local indexfname = "/home/mikael/.mcabber/lua/mcbot/rfc-index.txt" +local home = os.getenv("HOME") +local indexfname = home.."/.mcabber/mcabbot/mcbot/rfc-index.txt" +home = nil local urlbase = "http://tools.ietf.org/html/rfc" diff -r d9c00a9fe9d5 -r 5c756a9d7d8c mcbot/cmds/wtf.lua --- a/mcbot/cmds/wtf.lua Tue Nov 27 16:26:04 2012 +0100 +++ b/mcbot/cmds/wtf.lua Tue Nov 27 16:36:17 2012 +0100 @@ -12,7 +12,9 @@ -- Please check the license in the COPYING file at the root of the tree. -- -local wtfdbfile = "/home/mikael/.mcabber/lua/mcbot/wtfdb.txt" +local home = os.getenv("HOME") +local wtfdbfile = home.."/.mcabber/mcabbot/mcbot/wtfdb.txt" +home = nil local wtf = { ["desc"] = "Acronym dictionary" }