Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
schubisu authored and thefinn93 committed Apr 18, 2024
1 parent 2635f05 commit 016b77d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ def encode_message(message):
message = emoji.emojize(message, use_aliases=True)
return message


def send_message(uuid, message, **kwargs):
encoded = encode_message(message)
request_id = get_request_id()
Expand Down Expand Up @@ -538,13 +537,13 @@ def attach_cmd_cb(data, buffer, args):
files = [f.strip() for f in args.split(",")]
for f in files:
if not os.path.exists(f):
prnt('could not send attachment: file "{}" could not be found'.format(f))
prnt('Could not send attachment: file "{}" could not be found'.format(f))
return weechat.WEECHAT_RC_ERROR

# check if buffer is a valid signal buffer and can be found in contacts
uuid = get_signal_uuid(buffer)
if uuid is None:
prnt('could not send attachment: buffer {} is no signal'.format(buffer))
prnt('Could not send attachment: buffer {} is no signal'.format(buffer))
return weechat.WEECHAT_RC_ERROR

# determine if it's a group or contact,
Expand Down Expand Up @@ -659,7 +658,7 @@ def reply_cmd_cb(data, buffer, args):
hdata = weechat.hdata_get("line_data")

if active_line is None:
prnt("no line for reply selected")
prnt("No line for reply selected")
return weechat.WEECHAT_RC_ERROR

line, line_data = active_line
Expand All @@ -677,7 +676,7 @@ def reply_cmd_cb(data, buffer, args):

uuid = get_signal_uuid(buffer)
if uuid is None:
prnt('could not send reply: buffer {} is no signal'.format(buffer))
prnt('Could not send reply: buffer {} is no signal'.format(buffer))
return weechat.WEECHAT_RC_ERROR

encoded = encode_message(args)
Expand Down

0 comments on commit 016b77d

Please sign in to comment.