limit lines posted
 

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

limit lines posted

Started by Pedro, 13 May, 2004, 01:44:23

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pedro

I am looking for a script to limit the amount of lines that can be posted in chat.

my hub has been getting flooded, the user is on dynamic ip and always changes nick before coming back to spam again.

he is making message in notepad first, then pasting it in chat. I tried to limit characters but this seems to get by it, I have tried all the anti advertising scripts ( they work well if addys are typed in) but dont work with the cut and paste.

I have tried using sneaky, deflood and adver-shield.
my only hope now is for a script to not display message if say it is more than 5 or 6 lines used on chat.

hope someone can help me.

this is message that is being advertised


  .
- <>
                         **** HUb Name will be going down for good! ****
Hub addys with host ips

- <>
If you?re looking for better games hubs with more users and shares, try these excellent hubs:
       xbox-world*myftp*biz
       psxbox*tropico*se:888
       console*idlegames*net
       dxm*no-ip*org:7569
       ivannofke*generally-raw*com
       versatility-apx*dynu*com
       trashcan*ath*cx:4114
You will need to replace the * with dots on the above addresses
Everyone welcome
if it aint broke, open it up and find out why...

kepp

Hope this helps
strBot = "MaxLen"

intMaxMain = 350  'Characters ( If above or equal don't send )

function DataArrival(strUser,strData)
	if (strsub(strData,1,1) == "<") then
	local s,e,strMsgs = strfind(strData,"%b<>(%S+)%s+(.*)")
		if strlen(strMsg) >= tonumber(intMaxMain) then
			user:SendData(strBot,"Your message was too long...") return 1
		end
	end
end
Guarding    

plop

it's build into ptokax.
rules and bot's tab, chat limit.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

UwV?

QuoteOriginally posted by plop
it's build into ptokax.
rules and bot's tab, chat limit.

plop



the master of simplicity has spoken.. close the thread ..  ;)
Music = Love
                              &
                   plop rulez
                          (feed [en]danger[ed][ous] things so they will grow!!)  

Pedro

sorry I did not explain myself properly, in ptokax it allows you to limit the amount of characters typed, in this instance when the user has typed his text in notepad or whatever, if you cut and paste this into main chat, ptokax with the characters typed limited does not stop any of his text going onto mainchat, it confuses me as to how, also as shown in my original message he is advertising games hubs but all the anti advertising scripts I have tried do not stop it either.

Thanx kepp I will try it.

I have managed to stop this guy using plops sneaky antiadvertising script but this was bad for the users cos I had to set it to kick for using a space in text  :(
Fortunately I got a good bunch of users who were understanding so when the advertiser came back in I finally managed to get his IP.

Thanx for your sneaky script plop.
if it aint broke, open it up and find out why...

SMF spam blocked by CleanTalk