Skip to content
Snippets Groups Projects
Commit 5eb102e0 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Korrekturen am cvh-bot (mumbleBot) 5.11.2020

parent 966701dc
Branches
No related tags found
No related merge requests found
diff --git a/commands/poll.go b/commands/poll.go
index 1729be5..cb6291a 100644
--- a/commands/poll.go
+++ b/commands/poll.go
@@ -90,11 +90,12 @@ func (c *PollCommand) Execute(user *gumble.User, private bool, args ...string) {
var voteMsg bytes.Buffer
switch len(args) {
case 0: //Classic poll
- ResultNames = []string{"yes", "no"}
standardVote = true
+ ResultNames = []string{"yes", "no"}
votingMessages = []string{"yes", "ja", "+", "no", "nein", "-"}
voteMsg.WriteString(" yes/no/ja/nein/+/-")
case 1: //Range poll
+ standardVote = false
voteMsg.WriteString(" anything between")
colonIndex := strings.Index(args[0], ":")
if colonIndex != -1 {
@@ -158,6 +159,7 @@ func (c *PollCommand) Execute(user *gumble.User, private bool, args ...string) {
}
votingMessages = ResultNames
default: //Poll with given answer possibilites
+ standardVote = false
ResultNames = make([]string, len(args))
votingMessages = make([]string, len(args))
for i, name := range args {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment