mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-17 17:34:37 +01:00
Fix comment
This commit is contained in:
@@ -297,12 +297,9 @@ func makeEventQuest(s *Session, rows *sql.Rows) ([]byte, error) {
|
|||||||
WHERE item_type = 9
|
WHERE item_type = 9
|
||||||
AND item_no = $1
|
AND item_no = $1
|
||||||
)`, questId).Scan(&amount, &deadline)
|
)`, questId).Scan(&amount, &deadline)
|
||||||
|
// Check if there are enough stamps to activate the quest, the deadline hasn't passed, and there are no errors
|
||||||
if stamps >= amount && deadline.After(time.Now()) {
|
if stamps >= amount && deadline.After(time.Now()) && err == nil && err2 == nil {
|
||||||
bf.WriteBool(true)
|
bf.WriteBool(true)
|
||||||
|
|
||||||
} else if err == nil || err2 == nil {
|
|
||||||
bf.WriteBool(false)
|
|
||||||
} else {
|
} else {
|
||||||
bf.WriteBool(false)
|
bf.WriteBool(false)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user