From 36b5543d2495601d5fe2b7af970562ae19785f99 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 26 Sep 2016 16:32:18 +0200 Subject: [PATCH] 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. --- src/wolfgame.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index b07ceee..748155e 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -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