From 016b77d396024034298cbc0bb8932da4d7365aa8 Mon Sep 17 00:00:00 2001 From: schubisu Date: Wed, 10 Apr 2024 12:10:23 +0200 Subject: [PATCH] typos --- signal.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/signal.py b/signal.py index 91a9688..c434c9d 100644 --- a/signal.py +++ b/signal.py @@ -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() @@ -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, @@ -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 @@ -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)