clix/roster.lua

changeset 63
bbbef9f4a798
parent 62
f455dad33efd
child 66
13d6d39f5952
--- a/clix/roster.lua	Mon Jul 04 10:43:43 2011 +0200
+++ b/clix/roster.lua	Sun Aug 14 21:27:41 2011 +0200
@@ -92,6 +92,13 @@
 				end
 			end;
 		}
+		function commands.help ()
+			print("Roster commands");
+			for cmd in pairs(commands) do
+				print(" * " .. cmd);
+			end
+			print("Most commands takes a JID as argument.");
+		end
 		local function on_incoming(stdin, text)
 			local cmd = text:match("^(%a*)");
 			local param = text:match("%s+(.*)", #cmd);

mercurial