From 00f2c89d936c319e52e0b5bd1d832088459e6194 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Sat, 5 Nov 2022 16:40:00 +0100 Subject: [PATCH] Opsi logic error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e583af..727d3b4 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ client = TeeworldsClient.new(verbose: false) client.on_chat do |msg| # note use `next` instead of `return` in the block - next if msg.message[0] == '!' + next unless msg.message[0] == '!' case msg.message[1..] when 'ping' then client.send_chat('pong')