Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Spam Filter in C# - Habboon
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Vinny95" data-source="post: 377738" data-attributes="member: 67962"><p>Hello,</p><p>I'm making a Spam Filter for my Hotel, but i have a problem now.</p><p>This is the code:</p><p></p><p>[CODE] if (Message.Length >= 3 && Message.ToString() == "www")</p><p> {</p><p> if (!Session.GetHabbo().GetPermissions().HasRight("mod_tool"))</p><p> {</p><p> </p><p> Session.SendNotification("Message.");</p><p> Message = " (no one message) ";</p><p> }</p><p> }[/CODE]</p><p></p><p>My problem is that: </p><p>How can I tell if this code is WWW written in a sentence must do what the code does?</p><p>What is the code? Send an alert to the user saying to never spam only if WWW is written in a sentence, only that at the time when I write www alone then it works, if you write it in a sentence (eg: hello www) the www and the remains' alert does not come out.</p><p></p><p>I have add this code on: ChatEvents.cs</p><p></p><p>Thanks for the support.</p></blockquote><p></p>
[QUOTE="Vinny95, post: 377738, member: 67962"] Hello, I'm making a Spam Filter for my Hotel, but i have a problem now. This is the code: [CODE] if (Message.Length >= 3 && Message.ToString() == "www") { if (!Session.GetHabbo().GetPermissions().HasRight("mod_tool")) { Session.SendNotification("Message."); Message = " (no one message) "; } }[/CODE] My problem is that: How can I tell if this code is WWW written in a sentence must do what the code does? What is the code? Send an alert to the user saying to never spam only if WWW is written in a sentence, only that at the time when I write www alone then it works, if you write it in a sentence (eg: hello www) the www and the remains' alert does not come out. I have add this code on: ChatEvents.cs Thanks for the support. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Spam Filter in C# - Habboon
Top