--- a/mcbot/cmds/rfc.lua Sat Apr 17 23:50:05 2010 +0200
+++ b/mcbot/cmds/rfc.lua Sat Apr 17 23:55:11 2010 +0200
@@ -7,6 +7,8 @@
-- <ftp://ftp.rfc-editor.org/in-notes/rfc-index.txt>
local indexfname = "/home/mikael/.mcabber/lua/mcbot/rfc-index.txt"
+local urlbase = "http://tools.ietf.org/html/rfc"
+
local rfc = { ["desc"] = "Search RFC database" }
local rfcdb = {}
@@ -97,7 +99,7 @@
if data.also then
r = r .. "Also:\t" .. data.also .. "\n"
end
- r = r:gsub("\n$", "")
+ r = r .. "URL:\t" .. urlbase..rfcnum
return r
end