From 8880d2a16395c7974baad76fc73b9b0e2b71cdb2 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Tue, 6 Oct 2015 21:47:48 +0200 Subject: [PATCH] Update buddies.lua --- src/apps/buddies.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/buddies.lua b/src/apps/buddies.lua index 3bef994..a4c3a59 100644 --- a/src/apps/buddies.lua +++ b/src/apps/buddies.lua @@ -80,8 +80,8 @@ local function remove() if users[y-1] then local user = users[y-1] if sPhone.yesNo("Remove "..users[y-1].."?",nil,false) then - table.remove(users, user) local f = fs.open("/.sPhone/config/buddies", "w") + table.remove(users,users[y-1]) for i = 1, #users do f.write(users[i].."\n") end