data is now line

This commit is contained in:
jesopo 2018-12-02 09:48:06 +00:00
parent 48eeb11554
commit c4ea6fa562

View file

@ -289,7 +289,7 @@ class Server(IRCObject.Object):
def send(self, line: str): def send(self, line: str):
returned = self.events.on("preprocess.send").call_unsafe_for_result( returned = self.events.on("preprocess.send").call_unsafe_for_result(
server=self, line=data) server=self, line=line)
line = returned or line line = returned or line
encoded = line.split("\n")[0].strip("\r").encode("utf8") encoded = line.split("\n")[0].strip("\r").encode("utf8")