unsupported operand type(s) for %: 'bytes' and 'bytes'
This commit is contained in:
parent
4779c885c8
commit
8a48d0e74c
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ class Server(object):
|
||||||
encoded = data.split("\n")[0].strip("\r").encode("utf8")
|
encoded = data.split("\n")[0].strip("\r").encode("utf8")
|
||||||
if len(encoded) > 450:
|
if len(encoded) > 450:
|
||||||
encoded = encoded[:450]
|
encoded = encoded[:450]
|
||||||
self.write_buffer += b"%s\r\n" % encoded
|
self.write_buffer += encoded + b"\r\n"
|
||||||
if self.bot.args.verbose:
|
if self.bot.args.verbose:
|
||||||
print(encoded.decode("utf8"))
|
print(encoded.decode("utf8"))
|
||||||
def _send(self):
|
def _send(self):
|
||||||
|
|
Loading…
Reference in a new issue