Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata2 #228

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
14 changes: 13 additions & 1 deletion irctest/client_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,19 @@ def getMessages(
continue
if not synchronize:
got_pong = True
for line in data.decode().split("\r\n"):
try:
decoded_data = data.decode()
except UnicodeDecodeError:
print(
"{time:.3f}{ssl} S -> {client} - failed to decode: {data!r}".format(
time=time.time(),
ssl=" (ssl)" if self.ssl else "",
client=self.name,
data=data,
)
)
raise
for line in decoded_data.split("\r\n"):
if line:
if self.show_io:
print(
Expand Down
1 change: 1 addition & 0 deletions irctest/controllers/unrealircd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

TEMPLATE_CONFIG = """
include "modules.default.conf";
loadmodule "third/metadata2";
include "operclass.default.conf";
{extras}
include "help/help.conf";
Expand Down
Loading