diff --git a/src/core_modules/line_handler/core.py b/src/core_modules/line_handler/core.py index 8e60edfa..aa862a03 100644 --- a/src/core_modules/line_handler/core.py +++ b/src/core_modules/line_handler/core.py @@ -167,7 +167,7 @@ def handle_437(event): _nick_in_use(event["server"]) def handle_396(event): - username, sep, hostname = event["line"][1].rpartition("@") + username, sep, hostname = event["line"].args[1].rpartition("@") event["server"].hostname = hostname if sep: event["server"].username = username