From 21d544c8fe764881ce324cf2e5aa6ec6e12dbbdb Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 3 Jul 2008 15:21:34 +0200 Subject: UNO plugin: skip empty messages --- data/rbot/plugins/games/uno.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'data/rbot') diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb index 640b28b1..47fac28d 100644 --- a/data/rbot/plugins/games/uno.rb +++ b/data/rbot/plugins/games/uno.rb @@ -854,6 +854,7 @@ class UnoPlugin < Plugin def message(m) return unless @games.key?(m.channel) + return unless m.plugin # skip messages such as: botname, g = @games[m.channel] case m.plugin.intern when :jo # join game -- cgit v1.2.3