--- 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