--- a/examples/mcabberrc.lua Sun May 20 06:24:50 2012 +0300
+++ b/examples/mcabberrc.lua Sun May 20 06:24:53 2012 +0300
@@ -117,7 +117,7 @@
-- COMMANDS
--- Help strings should not contain command, only arguments. This is necessary to support soft aliases.
+--[[ Help strings should not contain command, only arguments. This is necessary to support soft aliases.
commands_help = {
post = "filename\n\nSends file as a message. Just shorthand.",
beep = "[enable|disable|on|off|yes|no|true|false]\n\nEnables or disables beeping on all messages.\nIf state is omitted, prints current state.",
@@ -127,11 +127,13 @@
count = "\n\nPrints number of resources of current buddy. Useful to determine member count of large room.",
toggle = "\n\nToggles away/online status.",
}
+--]]
main.command ( 'post',
function ( args )
main.run ( 'say_to -f ' .. args .. ' .' )
end, false, 'filename' )
+--[[
main.command ( 'cmd',
function ( args )
local to = main.current_buddy ()
@@ -172,6 +174,7 @@
end
print ( "Resource count: " .. count )
end )
+--]]
main.command ( 'toggle',
function ( args )
local stat, mess = main.status ()