Jump to content


Spam Filter in PM's


  • Please log in to reply
49 replies to this topic

#41 23W

23W

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 14 March 2010 - 05:00 PM

Error occurs in antispam filter:

Quote

[2010-03-14 18:48] LUA ERROR: D:\Archive\ApexDC++\Scripts\antispam.lua:179: attempt to index global 'dcpp' (a nil value)




All setting is defaults. No modifies in filter*.txt files.

Startup.lua file contains only:

Quote

dofile( DC():GetAppPath() .. "Scripts\\antispam.lua" )


#42 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 15 March 2010 - 11:21 AM

How many times get this error?

What is your client, and lua plugin version?

Line 179 is the start of the menu listener, it will catch your /as or /antispam massages from main chat. I thested it on current 1.3.1 x64, works well.

#43 23W

23W

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 16 March 2010 - 06:43 PM

Antispam filter  - v1.3 (all Filter???.txt is defaults).



DC cleint - ApexDC++ 1.3.1 (x86)

LUA Plugin - 2.0.1.0

lua5.1.dll - 5.1.4.0

lua51.dll - 5.1.4.0

startup.lua - 

Quote

dofile( DC():GetAppPath() .. "Scripts\\antispam.lua" )

Error is generated every time on ApexDC++ startup.






 /as and /antispam commands are not worked -

Quote

[20:44:39] *** Unknown command: as
[20:44:47] *** Unknown command: antispam







P.S.: Can you post your startup.lua file? May be this is cause of accident. 

#44 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 20 March 2010 - 06:19 PM

View Post23W, on 16 March 2010 - 06:43 PM, said:

Antispam filter  - v1.3 (all Filter???.txt is defaults).



DC cleint - ApexDC++ 1.3.1 (x86)

LUA Plugin - 2.0.1.0

lua5.1.dll - 5.1.4.0

lua51.dll - 5.1.4.0

startup.lua - 

Error is generated every time on ApexDC++ startup.


 /as and /antispam commands are not worked -


P.S.: Can you post your startup.lua file? May be this is cause of accident. 

Sorry for my late react.


lua5.1.dll - 5.1.4.0

lua51.dll - 5.1.4.0

These files come from where? These files are not present in my apex installation. Try 1 thing: delete all of the .txt files, then lanch the client. My script will generate these files, and maybe you will se some information in the systemlog. (from the view menu in apex's menu bar)

Attached Files



#45 23W

23W

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 27 March 2010 - 12:14 PM

View PostPatch, on 20 March 2010 - 06:19 PM, said:

Sorry for my late react.


lua5.1.dll - 5.1.4.0

lua51.dll - 5.1.4.0

These files come from where? These files are not present in my apex installation. Try 1 thing: delete all of the .txt files, then lanch the client. My script will generate these files, and maybe you will se some information in the systemlog. (from the view menu in apex's menu bar)
Thank you, now all works ok.





But, log.lua and uptime.lua from your startup.lua are absent in standart plugin installation set (http://forums.apexdc...for-apexdc-131/). I found them in BCDC++ package, but...  log.lua is not worked in ApexDC++. Can you help me, where i can find BCDC++ lua scrips ported to ApexDC++ ?

#46 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 05 April 2010 - 11:02 AM

View Post23W, on 27 March 2010 - 12:14 PM, said:

Thank you, now all works ok.





But, log.lua and uptime.lua from your startup.lua are absent in standart plugin installation set (http://forums.apexdc...for-apexdc-131/). I found them in BCDC++ package, but...  log.lua is not worked in ApexDC++. Can you help me, where i can find BCDC++ lua scrips ported to ApexDC++ ?

Uptime.lua and Log.lua works fine with Apex 1.3.1, i think, these scripts came from BCDC++, but quite old scripts. I think, nobody porting scripts from BCDC to Apex.
I will post these scripts, and maybe other working scripts to the forum, after some tryout.

***update - my log.lua is older than wich included in actual bcdc. The newer version not works.

Attached Files



#47 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 05 April 2010 - 11:15 AM

The thing is no porting should be necessary... although the most recent changes to the lua part from bcdc are not done by the plugin yet.
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#48 lisych

lisych

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 04 September 2010 - 09:29 AM

Windows 7 64bit. ApexDC 1.3.5 x64

Quote

[15:25:24] LUA ERROR: C:\Program Files\ApexDC++\Scripts\antispam.lua:337: chunk has too many syntax levels

In FilterSpams.txt I replace all words "spam" to "spa_m". It was corrects this error.



Also was error, because file located in:
C:\Documents and Settings\lis.KONTUR\Application Data\ApexDC++\DCPlusPlus.xml

#49 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 10 September 2010 - 11:42 AM

View Postlisych, on 04 September 2010 - 09:29 AM, said:

Windows 7 64bit. ApexDC 1.3.5 x64



In FilterSpams.txt I replace all words "spam" to "spa_m". It was corrects this error.



Also was error, because file located in:
C:\Documents and Settings\lis.KONTUR\Application Data\ApexDC++\DCPlusPlus.xml

Your ApexDC is installed to the Application Data folder?

When you got the error u used the "/as readspam #" command?

#50 xrmb

xrmb

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 29 October 2010 - 11:14 PM

I saw someone having this problem before... but there was no real answer how to fix it

[19:07:36]   ** Loaded antispam filter v1.3 **
[19:07:36] Antispam filter: HI! I will protect you from unwanted PM's. For more details, type: /antispam
[19:07:36] LUA ERROR: ...\Scripts\antispam.lua:179: attempt to index global 'dcpp' (a nil value)

I'm using latest apexdc++ 1.3.8 and latest plugins, and I guess antispam 1.3 is the latest one too...

Ideas anyone?


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users