Fix for new blather version

Stephen Paul Weber created

Change summary

lib/blather_client.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Detailed changes

lib/blather_client.rb 🔗

@@ -57,9 +57,12 @@ class BlatherClient < Blather::Client
 	def call_handler(handler, guards, stanza)
 		result = if guards.first.respond_to?(:to_str)
 			found = stanza.find(*guards)
-			handler.call(stanza, found) unless found.empty?
+			throw :pass if found.empty?
+
+			handler.call(stanza, found)
 		else
 			throw :pass if guarded?(guards, stanza)
+
 			handler.call(stanza)
 		end