xmpp: update links (new XMPP RFC)
authorMikael Berthe <mikael@lilotux.net>
Fri, 01 Apr 2011 08:21:23 +0200
changeset 51 a3e9f8f9d969
parent 50 070e5b83b408
child 52 4efe459ca7f1
xmpp: update links (new XMPP RFC)
mcbot/cmds/xmpp.lua
--- a/mcbot/cmds/xmpp.lua	Tue Mar 01 18:38:55 2011 +0100
+++ b/mcbot/cmds/xmpp.lua	Fri Apr 01 08:21:23 2011 +0200
@@ -1,9 +1,11 @@
 
 -- Ugly module with hardcoded URLs to the XMPP draft URLs...
+-- Also, see http://datatracker.ietf.org/doc/
 
 local xmpp = { ["desc"] = "Give URLs to XMPP documents" }
 
 function xmpp.cmd (args)
+    --[[
     local xmppbaseurl = "http://datatracker.ietf.org/doc/"
     local urls = {}
 
@@ -15,6 +17,23 @@
         ["desc"] = "Instant Messaging and Presence",
         ["url"] = xmppbaseurl.."draft-ietf-xmpp-3921bis/",
     }
+    --]]
+
+    local xmppbaseurl = "http://tools.ietf.org/html/"
+    local urls = {}
+
+    urls["6120"] = {
+        ["desc"] = "Core",
+        ["url"] = xmppbaseurl.."rfc6120",
+    }
+    urls["6121"] = {
+        ["desc"] = "Instant Messaging and Presence",
+        ["url"] = xmppbaseurl.."rfc6121",
+    }
+    urls["6122"] = {
+        ["desc"] = "Instant Messaging and Presence",
+        ["url"] = xmppbaseurl.."rfc6122",
+    }
 
     local r = "XMPP is the eXtensible Messaging and Presence Protocol. See:\n"
     for k, urltable in pairs(urls) do