Remove !wiki title check as it is too restrictive
It didn't allow user pages or pages with disambiguation suffixes. I think it's fine for it to just return "not found" for invalid titles.
This commit is contained in:
parent
925819e517
commit
36b5543d24
@ -6703,10 +6703,6 @@ def wiki(cli, nick, chan, rest):
|
|||||||
if not rest:
|
if not rest:
|
||||||
reply(cli, nick, chan, "https://werewolf.chat")
|
reply(cli, nick, chan, "https://werewolf.chat")
|
||||||
return
|
return
|
||||||
# Check for valid page name
|
|
||||||
if not re.fullmatch("[\w ]+", rest):
|
|
||||||
reply(cli, nick, chan, messages["wiki_invalid_page"])
|
|
||||||
return
|
|
||||||
rest = rest.replace(" ", "_").lower()
|
rest = rest.replace(" ", "_").lower()
|
||||||
|
|
||||||
# Get suggestions, for autocompletion
|
# Get suggestions, for autocompletion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user