mirror of
https://github.com/minetest-mods/irc.git
synced 2025-06-29 14:40:36 +02:00
Prevent players from joining the channel when logged in from IRC
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user