Miscellaneous syntax changes

This commit is contained in:
ShadowNinja 2013-03-27 22:27:15 -04:00
parent 05d1c81f1f
commit 8980b78908
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ mt_irc.register_bot_command("login", {
params = "<username> <password>", params = "<username> <password>",
description = "Login as a user to run commands", description = "Login as a user to run commands",
func = function (from, args) func = function (from, args)
if (args == "") then if args == "" then
mt_irc.say(from, "You need a username and password") mt_irc.say(from, "You need a username and password")
return return
end end
@ -44,7 +44,7 @@ end})
mt_irc.register_bot_command("cmd", { mt_irc.register_bot_command("cmd", {
params = "<command>", params = "<command>",
description = "Run a command on the server"; description = "Run a command on the server",
func = function (from, args) func = function (from, args)
if args == "" then if args == "" then
mt_irc.say(from, "You need a command") mt_irc.say(from, "You need a command")