From 49278f9432185ac557997e8d72888187b205ff2b Mon Sep 17 00:00:00 2001 From: Forest Belton <65484+forestbelton@users.noreply.github.com> Date: Tue, 22 Jun 2021 01:33:34 -0400 Subject: [PATCH] Fix format of WHO reply --- paircd/handler/who.py | 2 +- paircd/handlers.py | 1 - paircd/reply.py | 5 +++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paircd/handler/who.py b/paircd/handler/who.py index ca03c82..4974a27 100644 --- a/paircd/handler/who.py +++ b/paircd/handler/who.py @@ -39,7 +39,7 @@ class WhoHandler(CommandHandler): # TODO: Implement "H", # H = here, G = gone "0", # hop count - f":{member.realname}", + member.realname, ) client.write_message(msg) diff --git a/paircd/handlers.py b/paircd/handlers.py index 8482317..578e0e5 100644 --- a/paircd/handlers.py +++ b/paircd/handlers.py @@ -1,5 +1,4 @@ from logging import WARN - from typing import Dict from paircd.client import Client diff --git a/paircd/reply.py b/paircd/reply.py index 11fa60e..dfa0be2 100644 --- a/paircd/reply.py +++ b/paircd/reply.py @@ -17,6 +17,7 @@ ERR_NOSUCHSERVER = reply_fn(402, "{0}: No such server") # Command responses RPL_WHOISUSER = reply_fn(311, "{0} {1} {2} * :{3}") -RPL_ENDOFWHOIS = reply_fn(318, "{0} :End of /WHOIS list") -RPL_WHOREPLY = reply_fn(352, "{0} {1} {2} {3} {3} {4} {5} :{6} {7}") RPL_ENDOFWHO = reply_fn(315, "{0} :End of /WHO list") +RPL_ENDOFWHOIS = reply_fn(318, "{0} :End of /WHOIS list") +RPL_CHANNELMODEIS = reply_fn(324, "{0} {1}{2}") +RPL_WHOREPLY = reply_fn(352, "{0} {1} {2} {3} {4} {5} :{6} {7}")