From 8e44e8a62cf3509d1b0ba5dd4d0d24be0f5b4fde Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 9 Aug 2008 23:03:44 +0200 Subject: quakeauth plugin: don't error out when identifying with m == nil --- data/rbot/plugins/quakeauth.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins') diff --git a/data/rbot/plugins/quakeauth.rb b/data/rbot/plugins/quakeauth.rb index 10257adf..b4b8b8d6 100644 --- a/data/rbot/plugins/quakeauth.rb +++ b/data/rbot/plugins/quakeauth.rb @@ -35,6 +35,7 @@ class QPlugin < Plugin val end end + @source = nil end def set(m, params) @@ -48,7 +49,7 @@ class QPlugin < Plugin end def identify(m, params) - @source = m.replyto + @source = m.replyto if m @registry['quakenet.auth'] = params[:password] if params[:password] if @registry.has_key?('quakenet.user') && @registry.has_key?('quakenet.auth') -- cgit v1.2.3