mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 23:09:48 +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
|
"*", # no chan
|
||||||
StrRe("~?" + self.username),
|
StrRe("~?" + self.username),
|
||||||
StrRe(host_re),
|
StrRe(host_re),
|
||||||
"My.Little.Server",
|
StrRe(r"(My.Little.Server|\*)"),
|
||||||
"coolNick",
|
"coolNick",
|
||||||
flags,
|
flags,
|
||||||
StrRe(realname_regexp(self.realname)),
|
StrRe(realname_regexp(self.realname)),
|
||||||
@ -76,7 +76,7 @@ class BaseWhoTestCase:
|
|||||||
"#chan",
|
"#chan",
|
||||||
StrRe("~?" + self.username),
|
StrRe("~?" + self.username),
|
||||||
StrRe(host_re),
|
StrRe(host_re),
|
||||||
"My.Little.Server",
|
StrRe(r"(My.Little.Server|\*)"),
|
||||||
"coolNick",
|
"coolNick",
|
||||||
flags + "@",
|
flags + "@",
|
||||||
StrRe(realname_regexp(self.realname)),
|
StrRe(realname_regexp(self.realname)),
|
||||||
@ -336,7 +336,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
|||||||
"#chan",
|
"#chan",
|
||||||
StrRe("~?" + self.username),
|
StrRe("~?" + self.username),
|
||||||
StrRe(host_re),
|
StrRe(host_re),
|
||||||
"My.Little.Server",
|
StrRe(r"(My.Little.Server|\*)"),
|
||||||
"coolNick",
|
"coolNick",
|
||||||
"G@",
|
"G@",
|
||||||
StrRe(realname_regexp(self.realname)),
|
StrRe(realname_regexp(self.realname)),
|
||||||
@ -351,7 +351,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
|||||||
"#chan",
|
"#chan",
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
"My.Little.Server",
|
StrRe(r"(My.Little.Server|\*)"),
|
||||||
"otherNick",
|
"otherNick",
|
||||||
"H",
|
"H",
|
||||||
StrRe("[0-9]+ .*"),
|
StrRe("[0-9]+ .*"),
|
||||||
@ -398,7 +398,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
|||||||
chan,
|
chan,
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
"My.Little.Server",
|
StrRe(r"(My.Little.Server|\*)"),
|
||||||
"coolNick",
|
"coolNick",
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
@ -413,7 +413,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
|||||||
chan,
|
chan,
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
"My.Little.Server",
|
StrRe(r"(My.Little.Server|\*)"),
|
||||||
"otherNick",
|
"otherNick",
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
@ -479,7 +479,7 @@ class WhoTestCase(BaseWhoTestCase, cases.BaseServerTestCase):
|
|||||||
StrRe("~?myusernam"),
|
StrRe("~?myusernam"),
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
ANYSTR,
|
ANYSTR,
|
||||||
"My.Little.Server",
|
StrRe(r"(My.Little.Server|\*)"),
|
||||||
"coolNick",
|
"coolNick",
|
||||||
StrRe("H@?"),
|
StrRe("H@?"),
|
||||||
ANYSTR, # hopcount
|
ANYSTR, # hopcount
|
||||||
|
Reference in New Issue
Block a user