From 63dc2141ba0afcfbfabfd67987d521712049e45a Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 1 Jun 2018 16:34:52 +0100 Subject: [PATCH] Fix typo that caused ASTokens to not be uniquely checked Signed-off-by: Andrew Morgan --- src/github.com/matrix-org/dendrite/common/config/appservice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/common/config/appservice.go b/src/github.com/matrix-org/dendrite/common/config/appservice.go index 0cc3c0b4..7eb12293 100644 --- a/src/github.com/matrix-org/dendrite/common/config/appservice.go +++ b/src/github.com/matrix-org/dendrite/common/config/appservice.go @@ -180,7 +180,7 @@ func checkErrors(config *Dendrite) (err error) { // Add the id/token to their respective maps if we haven't already // seen them. idMap[appservice.ID] = true - tokenMap[appservice.ID] = true + tokenMap[appservice.ASToken] = true // Check if more than one regex exists per namespace for _, namespace := range appservice.NamespaceMap {