Browse Source

Fix format of WHO reply

master
Forest Belton 3 years ago
parent
commit
49278f9432
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      paircd/handler/who.py
  2. +0
    -1
      paircd/handlers.py
  3. +3
    -2
      paircd/reply.py

+ 1
- 1
paircd/handler/who.py View File

@ -39,7 +39,7 @@ class WhoHandler(CommandHandler):
# TODO: Implement # TODO: Implement
"H", # H = here, G = gone "H", # H = here, G = gone
"0", # hop count "0", # hop count
f":{member.realname}",
member.realname,
) )
client.write_message(msg) client.write_message(msg)

+ 0
- 1
paircd/handlers.py View File

@ -1,5 +1,4 @@
from logging import WARN from logging import WARN
from typing import Dict from typing import Dict
from paircd.client import Client from paircd.client import Client

+ 3
- 2
paircd/reply.py View File

@ -17,6 +17,7 @@ ERR_NOSUCHSERVER = reply_fn(402, "{0}: No such server")
# Command responses # Command responses
RPL_WHOISUSER = reply_fn(311, "{0} {1} {2} * :{3}") 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_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}")

Loading…
Cancel
Save