forked from minetest-mods/irc_commands
Miscellaneous syntax changes
This commit is contained in:
parent
05d1c81f1f
commit
8980b78908
4
init.lua
4
init.lua
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user