Fix: limit 0 because of too early call of notifybot
This commit is contained in:
		| @@ -345,12 +345,13 @@ func HandleGiveClue(w http.ResponseWriter, r *http.Request) { | ||||
| 	fi.Room.OpenedThisTurn = 0 | ||||
| 	StartTurnTimer(fi.Room.ID, fi.Room.Settings.RoundTime) | ||||
| 	log.Debug("given clue", "clue", clue, "limit", fi.Room.ThisTurnLimit) | ||||
| 	notify(models.NotifyBacklogPrefix+fi.Room.ID, clue+num) | ||||
| 	notifyBotIfNeeded(fi.Room) | ||||
| 	// notify(models.NotifyBacklogPrefix+fi.Room.ID, clue+num) | ||||
| 	notify(models.NotifyRoomUpdatePrefix+fi.Room.ID, clue+num) | ||||
| 	if err := saveFullInfo(r.Context(), fi); err != nil { | ||||
| 		abortWithError(w, err.Error()) | ||||
| 		return | ||||
| 	} | ||||
| 	notifyBotIfNeeded(fi.Room) | ||||
| } | ||||
|  | ||||
| func HandleRenotifyBot(w http.ResponseWriter, r *http.Request) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder