Edit :
No, I didn't know all of these words
If you can't see the problem, then this is the problem![]()
[PrimaryKey(AutoIncrement = true)]
public int ID
{
get { return m_id; }
set { m_id = value; }
}
INSERT INTO BadNames ('somebadword', 1);If you can't see the problem, then this is the problem![]()

foreach (string invalid in GameServer.Instance.InvalidNames)
{
if (NewLastname.ToLower().IndexOf(invalid) != -1)
{
client.Out.SendMessage(NewLastname + " is not a legal last name! Choose another.", eChatType.CT_System, eChatLoc.CL_SystemWindow);
return;
}
}
//TODO do bad name checks here from some database with
//bad names, this is just a temp testthing here
If you can't see the problem, then this is the problem![]()
Quick update, took the patches down. Did some testing to find out that the BadNameCheckRequest is not handled anymoreI believe the patch for this was never committed, but I updated it for latest DOL revision also changed the code to be handled in BadNameCheckRequestHandler instead of DuplicateName or w.e. it was. I also added support for it in the lastname handler at Tola's request.
If you can't see the problem, then this is the problem![]()
If you can't see the problem, then this is the problem![]()
With this patch you're going to check for every table row if it "Contains" BadNames or if it "Contains" PartialNames...
First : This is the same behavior for both field... I'm not sure that the expected functionnality
Second : This will match if any of the field is Empty ! ("abcd".Contains(""); return true !)
http://stackoverflow.com/questions/5882 ... ring-empty
If you can't see the problem, then this is the problem![]()
Return to “%s” DOL Code Contributions
Users browsing this forum: No registered users and 1 guest