Browse Source

Fixes channel listing to show all channels

master
sloum 2 years ago
parent
commit
3eb6527618
  1. 9
      gab

9
gab

@ -81,9 +81,10 @@ def get_user_channels(user_dir):
def get_chan_list():
chans = {"gab"}
for y in os.listdir("/home/" + current_user):
if len(y) > 5 and y[:5] == ".gab-" and y[-1] != "!":
chans.add(y[5:])
for x in os.listdir("/home/"):
for y in os.listdir("/home/" + x):
if len(y) > 5 and y[:5] == ".gab-" and y[-1] != "!":
chans.add(y[5:])
return chans
@ -330,7 +331,7 @@ def parse_command():
print("Expected a user to unblock, but received too many arguments")
else:
unblock_user(args[1])
elif args[0] in ["-c", "--channel", "channel"]:
if args[0] in ["-c", "--channel", "channel"]:
if len(args) < 2:
# print("Returning to default channel.")
# switch_channel("gab")

Loading…
Cancel
Save