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
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
it's build into ptokax.
rules and bot's tab, chat limit.
plop
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 .. ;)
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.