Remove unnecessary print and returns
thread_command_callback is only bound to /thread and /reply, so it will
never be called with anything else, and there is no point in printing an
error message.
@@ -3521,7 +3521,7 @@ def thread_command_callback(data, current_buffer, args):
except:
pm = channel.hashed_messages[thread_id]
pm.open_thread(switch=config.switch_buffer_on_join)
- return w.WEECHAT_RC_OK_EAT
+
elif args[0] == '/reply':
if args[1][0] == "$":
if args[1][1:] in channel.hashed_messages:
@@ -3535,8 +3535,6 @@ def thread_command_callback(data, current_buffer, args):
msg = " ".join(args[2:])
channel.send_message(msg, request_dict_ext={"thread_ts": parent_id})
return w.WEECHAT_RC_OK_EAT
- w.prnt(current, "Invalid thread command.")
- return w.WEECHAT_RC_OK_EAT
@utf8_decode
