8 require "verse" |
8 require "verse" |
9 require "verse.client" |
9 require "verse.client" |
10 |
10 |
11 -- Global to allow commands to add to it |
11 -- Global to allow commands to add to it |
12 short_opts = { v = "verbose", q = "quiet", t = "to", f = "from", e = "type", |
12 short_opts = { v = "verbose", q = "quiet", t = "to", f = "from", e = "type", |
13 a = "account", p = "password", r = "resource", o = "presence", c = "chatroom", i = "interactive" } |
13 a = "account", p = "password", r = "resource", o = "presence", c = "chatroom", i = "interactive", |
|
14 f = "file" } |
14 |
15 |
15 if #arg < 1 then |
16 if #arg < 1 then |
16 print("Command Line XMPP, available commands:"); |
17 print("Command Line XMPP, available commands:"); |
17 for module in pairs(package.preload) do |
18 for module in pairs(package.preload) do |
18 if module:match("^clix%.") then |
19 if module:match("^clix%.") then |