Skip to content

Instantly share code, notes, and snippets.

@gnuget
Created November 22, 2009 08:39
Show Gist options
  • Save gnuget/240487 to your computer and use it in GitHub Desktop.
Save gnuget/240487 to your computer and use it in GitHub Desktop.
#! /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