Hello,
I'm making a Spam Filter for my Hotel, but i have a problem now.
This is the 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.
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) ";
}
}
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.