aboutsummaryrefslogtreecommitdiffstats
path: root/titlebot/commands
diff options
context:
space:
mode:
Diffstat (limited to 'titlebot/commands')
-rwxr-xr-xtitlebot/commands/undo2
-rwxr-xr-xtitlebot/commands/up2
2 files changed, 2 insertions, 2 deletions
diff --git a/titlebot/commands/undo b/titlebot/commands/undo
index a66de67..e1b0aba 100755
--- a/titlebot/commands/undo
+++ b/titlebot/commands/undo
@@ -15,7 +15,7 @@ except:
print("""usage: undo number (...)
undos vote of one or more entries based on .list""")
sys.exit(1)
-voter = environ['_prefix']
+voter = environ['_prefix'].split("@")[1]
voter_name = environ['_from']
for vote in votes:
try:
diff --git a/titlebot/commands/up b/titlebot/commands/up
index 0a48bdb..7aff594 100755
--- a/titlebot/commands/up
+++ b/titlebot/commands/up
@@ -15,7 +15,7 @@ if not votes:
upvotes one or more entries based on .list""")
sys.exit(1)
-voter = environ['_prefix']
+voter = environ['_prefix'].split("@")[1]
voter_name =environ['_from']
for vote in votes:
try: