diff options
author | Alex Chen <Cnly@users.noreply.github.com> | 2019-08-06 22:07:36 +0800 |
---|---|---|
committer | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-08-06 15:07:36 +0100 |
commit | f8d2860765325c29d516f766002b46515b3e0a8c (patch) | |
tree | 30d4958b3f9ebc313918549bc5cd9d6a1eb9764b /roomserver/auth | |
parent | d283676b9ac5137e745dcc61587929a296359265 (diff) |
Replace membership and visibility values with constants (#774)
Signed-off-by: Alex Chen <minecnly@gmail.com>
Diffstat (limited to 'roomserver/auth')
-rw-r--r-- | roomserver/auth/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/auth/auth.go b/roomserver/auth/auth.go index 2dce6f6d..5ff1fada 100644 --- a/roomserver/auth/auth.go +++ b/roomserver/auth/auth.go @@ -23,7 +23,7 @@ func IsServerAllowed( ) bool { for _, ev := range authEvents { membership, err := ev.Membership() - if err != nil || membership != "join" { + if err != nil || membership != gomatrixserverlib.Join { continue } |