Author Topic: Fresh Stuff  (Read 2114 times)

0 Members and 1 Guest are viewing this topic.

Offline balblub

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Fresh Stuff
« on: 15 April, 2006, 17:53:20 »
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?

Code: [Select]
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


PtokaX forum

Fresh Stuff
« on: 15 April, 2006, 17:53:20 »

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 753
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: Fresh Stuff
« Reply #1 on: 15 April, 2006, 18:00:38 »
You seem to be using an outdated version. This issue has been reported and fixed long ago.
This is the latest version's thread.
Everything could have been anything else and it would have just as much meaning.

Offline balblub

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Fresh Stuff
« Reply #2 on: 15 April, 2006, 18:51:19 »
Thx  :D

PtokaX forum

Re: Fresh Stuff
« Reply #2 on: 15 April, 2006, 18:51:19 »