forked from minetest-mods/irc_commands
Fix spelling of "logged"
This commit is contained in:
parent
0e0ce48738
commit
64e53cba45
8
init.lua
8
init.lua
@ -7,8 +7,8 @@ end
|
|||||||
|
|
||||||
local old_chat_send_player = minetest.chat_send_player
|
local old_chat_send_player = minetest.chat_send_player
|
||||||
minetest.chat_send_player = function(name, message)
|
minetest.chat_send_player = function(name, message)
|
||||||
for nick, logedInAs in pairs(irc_users) do
|
for nick, loggedInAs in pairs(irc_users) do
|
||||||
if name == logedInAs and not minetest.get_player_by_name(name) then
|
if name == loggedInAs and not minetest.get_player_by_name(name) then
|
||||||
notify(nick, message)
|
notify(nick, message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -77,7 +77,7 @@ mt_irc:register_bot_command("cmd", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if not irc_users[user.nick] then
|
if not irc_users[user.nick] then
|
||||||
notify(user.nick, "You are not loged in")
|
notify(user.nick, "You are not logged in")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local found, _, commandname, params = args:find("^([^%s]+)%s(.+)$")
|
local found, _, commandname, params = args:find("^([^%s]+)%s(.+)$")
|
||||||
@ -105,7 +105,7 @@ mt_irc:register_bot_command("say", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if not irc_users[user.nick] then
|
if not irc_users[user.nick] then
|
||||||
notify(user.nick, "You are not loged in")
|
notify(user.nick, "You are not logged in")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if minetest.check_player_privs(irc_users[user.nick], {shout=true}) then
|
if minetest.check_player_privs(irc_users[user.nick], {shout=true}) then
|
||||||
|
Loading…
Reference in New Issue
Block a user