Prevent spamming and flooding the chat.

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Gaborone
Posts: 13
Joined: 2003-02-27 21:34

Prevent spamming and flooding the chat.

Post by Gaborone » 2003-03-01 08:19

Hi,

I wounder if there is any way to prevent a message being displayed from the script. e.g Don't display a message if it is more than 400 characters.

Or is it too late when the mesage arrives to the script? does this happen after the message is displayed in the chat?

I know there is a feature for this in the hub settings, but using that generates problems, since it applies to all users, OP's as well as regular users.

Regards, Gaborone

ButterflySoul
Posts: 210
Joined: 2003-01-23 22:24
Location: Nevada

Post by ButterflySoul » 2003-03-01 09:28

The user objects have a few "undocumented" methods... What you're looking for is one of them :

iChatCharactersInLastMinute
[CoZ] Children of Zeus
-----
Shadows DC Hub - VBS and JS scripting at their best

Gaborone
Posts: 13
Joined: 2003-02-27 21:34

Issue closed

Post by Gaborone » 2003-03-02 11:51

Thanks for all the help.

The way to deal with the problem is to us Gadget's modified hub software, and take over the control of the chat messages in the script.

/Gaborone

smitty
Posts: 53
Joined: 2003-03-01 19:45

Post by smitty » 2003-03-09 00:53

[
The user objects have a few "undocumented" methods... What you're looking for is one of them :

iChatCharactersInLastMinute[/quote]


lemme see an example that will block chat going to main with an unmodified hub...

smitty
Posts: 53
Joined: 2003-03-01 19:45

Post by smitty » 2003-03-09 00:54

ok so I don't know how to use the Quote Function...hehehe

ButterflySoul
Posts: 210
Joined: 2003-01-23 22:24
Location: Nevada

Post by ButterflySoul » 2003-03-09 02:00

lemme see an example that will block chat going to main with an unmodified hub


Gaborone's question was a double one. He obviously knew how to script, but didn't know what method/property to use in order to track people's characters sent to the main chat in a way similar to the hub's feature tracking everyone's characters.
In order to use the same counter of the hub, but make a difference in between OPs and regular users (which was his first question), you need to use the iChatCharactersInLastMinute method of an user object.

I don't think his second problem - blocking the chat from being sent to everyone - can be archieved without a modified hub.
The original hub has obviously a filtering function built-in since the cpm-based filter of an unmodified hub does work. However, I don't know if you can call this filter from a script, and in the unlikely case you can, I definitely don't know how.
[CoZ] Children of Zeus
-----
Shadows DC Hub - VBS and JS scripting at their best

smitty
Posts: 53
Joined: 2003-03-01 19:45

Post by smitty » 2003-03-09 02:32

I donno if this would work but it just might if it responds fast enough


If left(sCurData,1)="<" and curUser.bOperator Then
frmHub.txtMaxChatCPS.Text = "5000"
Else
frmHub.txtMaxChatCPS.Text = "500"
End If

Who is online

Users browsing this forum: Google [Bot] and 0 guests