From 4c6f8ceeafd1eadb4de8f86fed93f779613deece Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 24 Nov 2008 21:15:55 -0500 Subject: Adjusted becommands/set to handle user_id properly. --- becommands/set.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'becommands/set.py') 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() -- cgit