Browse Source

add a message for each line

channel-indicator
gogoigo 3 years ago
parent
commit
4a43e8a5a6
  1. 5
      gab

5
gab

@ -256,7 +256,10 @@ def parse_command():
call([EDITOR, tf.name])
tf.seek(0)
edited_message = tf.read()
add_message(edited_message.decode("utf-8") )
lines = edited_message.decode("utf-8").split("\n")
for line in lines:
if len(line.split()):
add_message(line)
elif len(args) > 2:
print("Expected a message, but received too many arguments. Did you put your message in quotes?")

Loading…
Cancel
Save