Created
November 22, 2009 08:39
-
-
Save gnuget/240487 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
version = "1.0" | |
__module_name__ = "forceutf-8.py" | |
__module_version__ = version | |
import xchat | |
class Change: | |
def __init__(self): | |
xchat.prnt("script para forzar el encode a utf-8 version %s cargado!" % (version)) | |
xchat.command("charset UTF-8") | |
def change(self,word,word_eol,userdata): | |
return xchat.EAT_XCHAT | |
control = Change() | |
xchat.hook_command("rola",control.change) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment