1
0
mirror of https://github.com/minetest-mods/irc_commands.git synced 2025-05-01 23:10:18 +02:00

Notify when using !logout and not logged in

This commit is contained in:
ShadowNinja 2013-03-27 22:26:29 -04:00
parent 607f3a02ad
commit 05d1c81f1f

@ -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", {