name related helper functions.
# gozerbot/utils/name.py # # """ name related helper functions. """ __status__ = "seen"
import string import os
allowednamechars = string.ascii_letters + string.digits + '!.@-'
def stripname(txt): res = "" for c in txt: if c in allowednamechars: res += c res.replace(os.sep, '-') return res