Refactor flags
Both QCM and Key are Flag
This commit is contained in:
parent
e029ec5414
commit
a66d6885e7
13 changed files with 318 additions and 249 deletions
|
@ -23,7 +23,7 @@ func treatWantChoices(pathname string, team fic.Team) {
|
|||
} else if ask.FlagId == 0 {
|
||||
log.Println("[WRN] Invalid content in wantChoices file: ", pathname)
|
||||
os.Remove(pathname)
|
||||
} else if flag, err := fic.GetFlag(ask.FlagId); err != nil {
|
||||
} else if flag, err := fic.GetFlagKey(ask.FlagId); err != nil {
|
||||
log.Println("[ERR]", err)
|
||||
} else if err := team.DisplayChoices(flag); err != nil {
|
||||
log.Println("[ERR]", err)
|
||||
|
|
Reference in a new issue