Miscellany
public python v1 · immutable__module_name__ = "muck"__module_version__ = "0.1.0"__module_description__ = "MUCK-like commands for Conspire"import reimport xchatpose_re = re.compile(r'^:')listening = [True]def muck_pose(word, word_eol, userdata): if listening and word_eol: del listening[:] try: if pose_re.match(word_eol[0]): xchat.command('me ' + text[1:]) return xchat.EAT_ALL finally: listening[:] = [True]xchat.hook_command('', muck_pose)