Unnamed
public python v1 · immutabledef logtxt(word, word_eol, userdata): try: f.write("%s\n" %word_eol[0]) Logged = True except: print "Error writing to log file." if Logged: xchat.emit_print("Channel Message", *word) return xchat.EAT_XCHAT else: return xchat.EAT_NONE