aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/set.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-24 21:15:55 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-24 21:15:55 -0500
commit4c6f8ceeafd1eadb4de8f86fed93f779613deece (patch)
tree56d42ceb27d9d343c742c85558b55a05f6fd3fcd /becommands/set.py
parentcb18ea54f783ed37a39fc12561329b398830d656 (diff)
downloadbugseverywhere-4c6f8ceeafd1eadb4de8f86fed93f779613deece.tar.gz
Adjusted becommands/set to handle user_id properly.
Diffstat (limited to 'becommands/set.py')
-rw-r--r--becommands/set.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/becommands/set.py b/becommands/set.py
index 0085f0f..24011f0 100644
--- a/becommands/set.py
+++ b/becommands/set.py
@@ -46,8 +46,10 @@ def execute(args):
print bd.settings.get(args[0])
else:
if args[1] != "none":
- old_setting = bd.settings[args[0]]
+ old_setting = bd.settings.get(args[0])
bd.settings[args[0]] = args[1]
+ if args[0] == "user_id":
+ bd.save_user_id()
# attempt to get the new value
bd.save()