diff options
author | desvox <ofunknowndescent@gmail.com> | 2018-08-05 19:13:41 -0500 |
---|---|---|
committer | desvox <ofunknowndescent@gmail.com> | 2018-08-05 19:13:41 -0500 |
commit | cba92412a82f0737cf2517412fabb825ed133ccb (patch) | |
tree | 114524ff407d6e77bce91c10515b909714e5604b /clients/urwid/main.py | |
parent | 826c13db98e79e182e4e9106678a934b71d2241d (diff) | |
download | bbj-cba92412a82f0737cf2517412fabb825ed133ccb.tar.gz |
Allow setting server admins from server's config.json
Diffstat (limited to 'clients/urwid/main.py')
-rw-r--r-- | clients/urwid/main.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/clients/urwid/main.py b/clients/urwid/main.py index 665bb41..06bae27 100644 --- a/clients/urwid/main.py +++ b/clients/urwid/main.py @@ -2243,6 +2243,7 @@ class ActionBox(urwid.ListBox): elif keyl == "f12": app.loop.stop() call("clear", shell=True) + motherfucking_rainbows(obnoxious_logo) readline.set_completer(rlcompleter.Completer().complete) readline.parse_and_bind("tab: complete") interact(banner=version + "\n(BBJ Interactive Console)", local=globals()) @@ -2466,11 +2467,12 @@ def bbjrc(mode, **params): values = json.load(_in) # update it with new keys if necessary for key, default_value in default_prefs.items(): - # HACK: checking if they == None should not be necessary, as the program - # should never store a preference value as a NoneType. However ~vilmibm - # encountered the editor being stored as None, so there is a misstep somewhere - # and this will at least keep the program from continuing to crash should - # anyone else ever run into it + # The application will never store a config value + # as the NoneType, so users may set an option as + # null in their file to reset it to default. + # Also covers a previous encounter a user + # had with having a NoneType set in their + # config by accident, crashing the program. if key not in values or values[key] == None: values[key] = default_value # else make one |