forked from minetest-mods/irc_commands
Notify when using !logout and not logged in
This commit is contained in:
parent
607f3a02ad
commit
05d1c81f1f
8
init.lua
8
init.lua
|
@ -34,8 +34,12 @@ end})
|
|||
mt_irc.register_bot_command("logout", {
|
||||
description = "Logout",
|
||||
func = function (from, args)
|
||||
irc_users[from] = nil
|
||||
mt_irc.say(from, "You are now logged off")
|
||||
if irc_users[from] then
|
||||
irc_users[from] = nil
|
||||
mt_irc.say(from, "You are now logged off")
|
||||
else
|
||||
mt_irc.say(from, "You are not logged in")
|
||||
end
|
||||
end})
|
||||
|
||||
mt_irc.register_bot_command("cmd", {
|
||||
|
|
Loading…
Reference in New Issue
Block a user