# Sparkizer Plugin For Xchat __module_name__ = "Sparkizer" __module_version__ = "0.1" __module_description__ = "Plugin that messes up text like only Spark knows how to" import xchat from string import strip def sparkize(word, word_eol, userdata) array = [] st = '' f = '' for x in word_eol[1].split(): e = list(x) random.shuffle(e) for a in e: st = st + a st = st + ' ' xchat.command("say %s" %(st)) return xchat.EAT_ALL xchat.hook_command('spark', sparkize, help='/spark: usage: /spark text - messes up everything! :D')