Skip to content

Commit

Permalink
Add support for '*' in place of server name in RPL_WHOREPLY/RPL_WHOSP…
Browse files Browse the repository at this point in the history
…CRPL

Sable users are no longer associated with a server, so it now returns
a blank where their server name used to be:
Libera-Chat/sable@93ab9af
  • Loading branch information
progval committed Feb 6, 2024
1 parent d75e3fa commit fc1f0e4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions irctest/server_tests/who.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _checkReply(self, reply, flags):
"*", # no chan
StrRe("~?" + self.username),
StrRe(host_re),
"My.Little.Server",
StrRe(r"(My.Little.Server|\*)"),
"coolNick",
flags,
StrRe(realname_regexp(self.realname)),
Expand All @@ -76,7 +76,7 @@ def _checkReply(self, reply, flags):
"#chan",
StrRe("~?" + self.username),
StrRe(host_re),
"My.Little.Server",
StrRe(r"(My.Little.Server|\*)"),
"coolNick",
flags + "@",
StrRe(realname_regexp(self.realname)),
Expand Down Expand Up @@ -336,7 +336,7 @@ def testWhoChan(self, mask):
"#chan",
StrRe("~?" + self.username),
StrRe(host_re),
"My.Little.Server",
StrRe(r"(My.Little.Server|\*)"),
"coolNick",
"G@",
StrRe(realname_regexp(self.realname)),
Expand All @@ -351,7 +351,7 @@ def testWhoChan(self, mask):
"#chan",
ANYSTR,
ANYSTR,
"My.Little.Server",
StrRe(r"(My.Little.Server|\*)"),
"otherNick",
"H",
StrRe("[0-9]+ .*"),
Expand Down Expand Up @@ -398,7 +398,7 @@ def testWhoMultiChan(self):
chan,
ANYSTR,
ANYSTR,
"My.Little.Server",
StrRe(r"(My.Little.Server|\*)"),
"coolNick",
ANYSTR,
ANYSTR,
Expand All @@ -413,7 +413,7 @@ def testWhoMultiChan(self):
chan,
ANYSTR,
ANYSTR,
"My.Little.Server",
StrRe(r"(My.Little.Server|\*)"),
"otherNick",
ANYSTR,
ANYSTR,
Expand Down Expand Up @@ -479,7 +479,7 @@ def _testWhoxFull(self, chars):
StrRe("~?myusernam"),
ANYSTR,
ANYSTR,
"My.Little.Server",
StrRe(r"(My.Little.Server|\*)"),
"coolNick",
StrRe("H@?"),
ANYSTR, # hopcount
Expand Down

0 comments on commit fc1f0e4

Please sign in to comment.