knowyt/server/src/game/removeQuote.go

21 lines
364 B
Go
Raw Normal View History

2021-10-15 21:07:41 +00:00
package game
import (
"fmt"
)
func (gm *Game) RemoveQuote(usrId string, quoteId string) error {
quote, err := gm.getQuoteById(quoteId)
if err != nil {
return err
}
if quote.GetSourceId() != usrId {
return fmt.Errorf("usrId does not match quote source id")
}
fmt.Printf("%v\n", quote)
return fmt.Errorf("Game::RemoveQuote() not yet implemented")
}