diff options
author | FChannel <> | 2021-05-14 09:46:04 -0700 |
---|---|---|
committer | FChannel <> | 2021-05-14 09:46:04 -0700 |
commit | 30714d5e76a94947a49487f526e48a996f1d9eaa (patch) | |
tree | f16aa2e7832557203d43b3a3e91513376e6a0f1d /main.go | |
parent | c6ea2bf6fe01fc9da82b9643f4673dfc91f4e23d (diff) |
tripcode empty fix
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -954,10 +954,11 @@ func CreateNameTripCode(r *http.Request, db *sql.DB) (string, string) { board, modcred := GetPasswordFromSession(r) if(admin && HasAuth(db, modcred, board)) { return re.ReplaceAllString(input, ""), "#Admin" - } else { + } else if(chunck != "") { hash := CreateTripCode(chunck) return re.ReplaceAllString(input, ""), "!" + hash[42:50] } + return input, "" } func GetActorFromPath(db *sql.DB, location string, prefix string) Actor { |