Skip to content

Commit

Permalink
reset listen settings wasnt working
Browse files Browse the repository at this point in the history
  • Loading branch information
caquillo07 committed Oct 24, 2020
1 parent 752dc19 commit bd2a812
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.5.0
v1.5.1
3 changes: 2 additions & 1 deletion bot/cmd_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func getActionFromArgs(args []string) string {
}

c := args[1]
if c != actionAdd && c != actionRemove {
if c != actionAdd && c != actionRemove && c != actionReset {
return ""
}

Expand All @@ -161,6 +161,7 @@ func handleListenUpdate(s *discordgo.Session, args []string, settings *repositor
// if we are resetting, just empty and return early
if action == actionReset {
settings.ListeningChannels = nil
return nil, nil
}

// if we get an action but no channels
Expand Down

0 comments on commit bd2a812

Please sign in to comment.