Fresh Stuff
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Fresh Stuff

Started by balblub, 15 April, 2006, 17:53:20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

balblub

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



bastya_elvtars

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.

balblub


SMF spam blocked by CleanTalk