Solve encoding errors through excessive encoding!
This commit is contained in:
parent
3600c715b6
commit
13c5e5794e
|
@ -1,4 +1,4 @@
|
||||||
host: 127.0.0.1
|
host: 10.0.3.14
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: droids
|
||||||
database: pyircbot
|
database: pyircbot_dev
|
||||||
|
|
|
@ -8,14 +8,14 @@ user:
|
||||||
hostname: pyircbot3.domain.com
|
hostname: pyircbot3.domain.com
|
||||||
realname: pyircbot3
|
realname: pyircbot3
|
||||||
ident:
|
ident:
|
||||||
enable: yes
|
enable: no
|
||||||
to: nickserv
|
to: nickserv
|
||||||
command: identify %(password)s
|
command: identify %(password)s
|
||||||
ghost: yes
|
ghost: yes
|
||||||
ghost_to: nickserv
|
ghost_to: nickserv
|
||||||
ghost_cmd: ghost %(nick)s %(password)s
|
ghost_cmd: ghost %(nick)s %(password)s
|
||||||
channels:
|
channels:
|
||||||
- "#pyircbot3"
|
- "#xmopx"
|
||||||
privatechannels:
|
privatechannels:
|
||||||
to: chanserv
|
to: chanserv
|
||||||
command: invite %(channel)s
|
command: invite %(channel)s
|
||||||
|
|
|
@ -154,7 +154,7 @@ class PyIRCBot(asynchat.async_chat):
|
||||||
:type text: str"""
|
:type text: str"""
|
||||||
if self.connected:
|
if self.connected:
|
||||||
self.log.debug(">> "+text)
|
self.log.debug(">> "+text)
|
||||||
self.send( (text+"\r\n").encode("ascii"))
|
self.send( (text+"\r\n").encode("UTF-8").decode().encode("UTF-8"))
|
||||||
else:
|
else:
|
||||||
self.log.warning("Send attempted while disconnected. >> "+text)
|
self.log.warning("Send attempted while disconnected. >> "+text)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue