From 45103cec624a021e0c2f31dc68a8c4d4db3c72f5 Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Tue, 2 Aug 2022 13:40:12 -0400 Subject: [PATCH] admin: fix nick regex --- plugins/admin/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/admin/admin.go b/plugins/admin/admin.go index e64f9a4..ea3a0ab 100644 --- a/plugins/admin/admin.go +++ b/plugins/admin/admin.go @@ -107,7 +107,7 @@ var setConfigRegex = regexp.MustCompile(`(?i)^set (?P\S+) (?P.*)$`) var pushConfigRegex = regexp.MustCompile(`(?i)^push (?P\S+) (?P.*)$`) var setKeyConfigRegex = regexp.MustCompile(`(?i)^setkey (?P\S+) (?P\S+) (?P.*)$`) var getConfigRegex = regexp.MustCompile(`(?i)^get (?P\S+)$`) -var setNickRegex = regexp.MustCompile(`(?i)^nick (?P\S+)$`) +var setNickRegex = regexp.MustCompile(`(?i)^nick (?P.+)$`) func (p *AdminPlugin) isAdmin(rh bot.ResponseHandler) bot.ResponseHandler { return func(r bot.Request) bool {