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:
nyuszika7h 2016-09-26 16:32:18 +02:00
parent 925819e517
commit 36b5543d24

View File

@ -6703,10 +6703,6 @@ def wiki(cli, nick, chan, rest):
if not rest:
reply(cli, nick, chan, "https://werewolf.chat")
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()
# Get suggestions, for autocompletion