kharidiron / StarryPy3k

StarryPy on Python3k
Other
5 stars 3 forks source link

Name sanitization #18

Closed Tsunder closed 8 years ago

Tsunder commented 8 years ago

Sanitize player names always/upon join and when using /nick

remove coloring ^.*; remove duplicate spaces remove special/typeable characters (Limit to alphanumeric?) maybe truncate name length

kharidiron commented 8 years ago

Commit 8904c1d8652956df2a6876f682e5ed1da5e71856 adds colored name sanitation.

Simple regex that matches on all ^****; type values, and removes them. Works for ^#hex;, ^color name; and ^fades, shadows, etc...;

rubellyte commented 8 years ago

Name sanitizing doesn't apply to the /nick command.

kharidiron commented 8 years ago

PR #29 makes some fixes to this.

kharidiron commented 8 years ago

Handled in PR #33. Closing issue.