Graveen wrote: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);
Graveen wrote: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
Graveen wrote: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 anymore Added it into DuplicateNameCheckRequest as a hack for now until I get more clarity on that. I have been testing for hours tonight :S I even tried to add my own handling in packetLibs for BadNameCheck, but nothing seemed to work. I will just base it off of DupNameCheck and repost when I am finished.I 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.
Graveen wrote:If you can't see the problem, then this is the problem
Graveen wrote: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
Graveen wrote: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