From 13c5e5794e21b211142e50e9991fa569754cd731 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 2 Oct 2014 20:55:19 -0700 Subject: [PATCH] Solve encoding errors through excessive encoding! --- data/config/MySQL.yml | 6 +++--- data/config/Services.yml | 4 ++-- pyircbot/core/pyircbot.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/data/config/MySQL.yml b/data/config/MySQL.yml index 92ce094..c8797b4 100644 --- a/data/config/MySQL.yml +++ b/data/config/MySQL.yml @@ -1,4 +1,4 @@ -host: 127.0.0.1 +host: 10.0.3.14 username: root -password: root -database: pyircbot +password: droids +database: pyircbot_dev diff --git a/data/config/Services.yml b/data/config/Services.yml index 6cdb994..824c544 100644 --- a/data/config/Services.yml +++ b/data/config/Services.yml @@ -8,14 +8,14 @@ user: hostname: pyircbot3.domain.com realname: pyircbot3 ident: - enable: yes + enable: no to: nickserv command: identify %(password)s ghost: yes ghost_to: nickserv ghost_cmd: ghost %(nick)s %(password)s channels: - - "#pyircbot3" + - "#xmopx" privatechannels: to: chanserv command: invite %(channel)s diff --git a/pyircbot/core/pyircbot.py b/pyircbot/core/pyircbot.py index c6cfa28..cfddf44 100644 --- a/pyircbot/core/pyircbot.py +++ b/pyircbot/core/pyircbot.py @@ -154,7 +154,7 @@ class PyIRCBot(asynchat.async_chat): :type text: str""" if self.connected: self.log.debug(">> "+text) - self.send( (text+"\r\n").encode("ascii")) + self.send( (text+"\r\n").encode("UTF-8").decode().encode("UTF-8")) else: self.log.warning("Send attempted while disconnected. >> "+text)