Hi
I have a little problem with FreshStuff, it works fine but if someone add a release it doesnt?look into the database if the same release was postet before.I can post 10times the same and he let me do this.
This is the add function, i think i need one more if ... there, anybody an idee?
function FreshStuff.AddCrap (user,data)
local _,_,cat,tune= string.find(data, "%b<>%s+%S+%s+(%S+)%s+(.+)")
if cat then
if FreshStuff.Types[cat] then
if string.find(tune,"%$") then SendTxt(user,env,Bot.name, "Der release name darf NICHT einen dollar Zeichen ($) enthalten!") return 1 end
SendTxt(user,env,Bot.name, tune.." wurde den releases hinzugef?gt als "..cat)
SendToAll(Bot.name, user.sName.." f?gte den "..cat.." releases etwas hinzu: "..tune)
FreshStuff.Count = FreshStuff.Count + 1
FreshStuff.AllStuff[FreshStuff.Count]={cat,user.sName,os.date("%m/%d/%Y"),tune}
FreshStuff.SaveRel()
FreshStuff.ReloadRel()
else
SendTxt(user,env,Bot.name, "Unbekannte category: "..cat)
end
else
SendTxt(user,env,Bot.name, "Ja klar, als ob ich w?sste was du hinzuf?gen willst solange du es mir nicht sagst!")
end
end
You seem to be using an outdated version. This issue has been reported and fixed long ago.
This is the latest version's thread. (http://lawmaker.no-ip.org/forum/topic.php?post=343&usebb_sid=39c538c59afb135e9b71361691f22277#post343)
Thx :D