diff options
Diffstat (limited to 'src/main.py')
-rw-r--r-- | src/main.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.py b/src/main.py index cc5a966..a120031 100644 --- a/src/main.py +++ b/src/main.py @@ -350,6 +350,9 @@ class WeegtkApplication(Adw.Application): self.network.desync_weechat() elif message.msgid == '_upgrade_ended': self.network.sync_weechat() + elif message.msgid == "_pong": + # For now don't do anything with pong messages + pass else: print(f"Unknown message with id {message.msgid}") @@ -372,9 +375,8 @@ class WeegtkApplication(Adw.Application): self.pages.insert(index, page) def buffer_input(self, source_object, full_name, text): - if self.network.is_connected(): - message = f"input {full_name} {text}\n" - self.network.send_to_weechat(message) + message = f"input {full_name} {text}\n" + self.network.send_to_weechat(message) def main(version): """The application's entry point.""" |