diff --git a/init.lua b/init.lua index e05b9b9..66f9242 100644 --- a/init.lua +++ b/init.lua @@ -31,7 +31,6 @@ local MP = minetest.get_modpath("beerchat") dofile(MP.."/format_message.lua") dofile(MP.."/hooks.lua") dofile(MP.."/storage.lua") -dofile(MP.."/moveAttributesToMeta.lua") dofile(MP.."/session.lua") dofile(MP.."/pm.lua") dofile(MP.."/hash.lua") diff --git a/moveAttributesToMeta.lua b/moveAttributesToMeta.lua deleted file mode 100644 index fa91d93..0000000 --- a/moveAttributesToMeta.lua +++ /dev/null @@ -1,18 +0,0 @@ --- transfer user information from depricated attributes to player metaRef - --- called when player joins -beerchat.moveAttributesToMeta = function(player) - local meta = player:get_meta() - local str = player:get_attribute("beerchat:channels") - if str and str ~= "" then - meta:set_string("beerchat:channels", str) - player:set_attribute("beerchat:channels", nil) - end - - local current_channel = player:get_attribute("beerchat:current_channel") - if current_channel and current_channel ~= "" then - meta:set_string("beerchat:current_channel", current_channel) - player:set_attribute("beerchat:current_channel", nil) - end - -end -- moveAttributesToMeta diff --git a/session.lua b/session.lua index cc29508..d168369 100644 --- a/session.lua +++ b/session.lua @@ -1,7 +1,6 @@ minetest.register_on_joinplayer(function(player) - beerchat.moveAttributesToMeta(player) local str = player:get_attribute("beerchat:channels") if str and str ~= "" then beerchat.playersChannels[player:get_player_name()] = {}