diff options
Diffstat (limited to 'net-p2p/adchpp/files/adchpp-2.9.0-fix_listreg.patch')
-rw-r--r-- | net-p2p/adchpp/files/adchpp-2.9.0-fix_listreg.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/net-p2p/adchpp/files/adchpp-2.9.0-fix_listreg.patch b/net-p2p/adchpp/files/adchpp-2.9.0-fix_listreg.patch deleted file mode 100644 index 8768d45..0000000 --- a/net-p2p/adchpp/files/adchpp-2.9.0-fix_listreg.patch +++ /dev/null @@ -1,40 +0,0 @@ -=== modified file 'changelog.txt' ---- changelog.txt 2012-10-23 15:42:01 +0000 -+++ changelog.txt 2012-11-26 17:28:07 +0000 -@@ -1,3 +1,5 @@ -+* Improve Lua scripts -+ - -- 2.9.0 2012-10-23 -- - * Add Lua FileSystem - * Add Lua Socket - -=== modified file 'plugins/Script/examples/access.lua' ---- plugins/Script/examples/access.lua 2012-09-25 17:09:17 +0000 -+++ plugins/Script/examples/access.lua 2012-11-26 17:28:07 +0000 -@@ -1376,19 +1376,21 @@ - - local list = {} - for _, v in base.ipairs(registered_users()) do -- if v.level <= user.level and (#param == 0 or (v.nick and string.match(string.lower(v.nick), param, 1))) then -+ local other_level = v.level -+ if not other_level then other_level = 0 end -+ if other_level <= user.level and (#param == 0 or (v.nick and string.match(string.lower(v.nick), param, 1))) then - local fields = {} - if v.nick then - table.insert(fields, "\tNick: " .. v.nick) - end -- if settings.passinlist.value ~=0 and v.level < user.level and v.password then -+ if settings.passinlist.value ~=0 and other_level < user.level and v.password then - table.insert(fields, "\n\tPassword: " .. v.password) - end - if v.cid then - table.insert(fields, "\n\tCID: " .. v.cid) - end -- if settings.passinlist.value ~=0 and v.level <= user.level then -- table.insert(fields, "Level: " .. v.level) -+ if settings.passinlist.value ~=0 and other_level <= user.level then -+ table.insert(fields, "Level: " .. other_level) - end - if v.regtime then - table.insert(fields, "\n\tRegistered: " .. time_diff(v.regtime) .. " ago") - |