forked from minetest-mods/irc
Prevent players from joining the channel when logged in from IRC
This commit is contained in:
parent
b4fbccd64a
commit
66bb7fc47d
@ -13,6 +13,8 @@ end
|
||||
function irc.player_join(name)
|
||||
if irc.joined_players[name] then
|
||||
return false, "You are already in the channel"
|
||||
elseif not minetest.get_player_by_name(name) then
|
||||
return false, "You need to be in-game to join the channel"
|
||||
end
|
||||
irc.joined_players[name] = true
|
||||
return true, "You joined the channel"
|
||||
|
Loading…
Reference in New Issue
Block a user