mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 06:49:47 +00:00
Add support for '*' in place of server name in RPL_WHOREPLY/RPL_WHOSPCRPL (#252)
Sable users are no longer associated with a server, so it now returns
a blank where their server name used to be:
93ab9afa5c
This commit is contained in:
@ -60,7 +60,7 @@ class BaseWhoTestCase:
|
||||
"*", # no chan
|
||||
StrRe("~?" + self.username),
|
||||
StrRe(host_re),
|
||||
"My.Little.Server",
|
||||
StrRe(r"(My.Little.Server|\*)"),
|
||||
"coolNick",
|
||||
flags,
|
||||
StrRe(realname_regexp(self.realname)),
|
||||
@ -76,7 +76,7 @@ class BaseWhoTestCase:
|
||||
"#chan",
|
||||
StrRe("~?" + self.username),
|
||||
StrRe(host_re),
|
||||
"My.Little.Server",
|
||||
StrRe(r"(My.Little.Server|\*)"),
|
||||
"coolNick",
|
||||
flags + "@",
|
||||
StrRe(realname_regexp(self.realname)),
|
||||
@ -336,7 +336,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
||||
"#chan",
|
||||
StrRe("~?" + self.username),
|
||||
StrRe(host_re),
|
||||
"My.Little.Server",
|
||||
StrRe(r"(My.Little.Server|\*)"),
|
||||
"coolNick",
|
||||
"G@",
|
||||
StrRe(realname_regexp(self.realname)),
|
||||
@ -351,7 +351,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
||||
"#chan",
|
||||
ANYSTR,
|
||||
ANYSTR,
|
||||
"My.Little.Server",
|
||||
StrRe(r"(My.Little.Server|\*)"),
|
||||
"otherNick",
|
||||
"H",
|
||||
StrRe("[0-9]+ .*"),
|
||||
@ -398,7 +398,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
||||
chan,
|
||||
ANYSTR,
|
||||
ANYSTR,
|
||||
"My.Little.Server",
|
||||
StrRe(r"(My.Little.Server|\*)"),
|
||||
"coolNick",
|
||||
ANYSTR,
|
||||
ANYSTR,
|
||||
@ -413,7 +413,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
||||
chan,
|
||||
ANYSTR,
|
||||
ANYSTR,
|
||||
"My.Little.Server",
|
||||
StrRe(r"(My.Little.Server|\*)"),
|
||||
"otherNick",
|
||||
ANYSTR,
|
||||
ANYSTR,
|
||||
@ -479,7 +479,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
||||
StrRe("~?myusernam"),
|
||||
ANYSTR,
|
||||
ANYSTR,
|
||||
"My.Little.Server",
|
||||
StrRe(r"(My.Little.Server|\*)"),
|
||||
"coolNick",
|
||||
StrRe("H@?"),
|
||||
ANYSTR, # hopcount
|
||||
|
Reference in New Issue
Block a user