Add URLs to RFCs
authorMikael Berthe <mikael@lilotux.net>
Sat, 17 Apr 2010 23:55:11 +0200
changeset 32 96bce644394a
parent 31 71bf91612a33
child 33 50aa4b0d63c1
Add URLs to RFCs
mcbot/cmds/rfc.lua
--- 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