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 {