diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-08-09 23:03:44 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-08-09 23:03:44 +0200 |
commit | 8e44e8a62cf3509d1b0ba5dd4d0d24be0f5b4fde (patch) | |
tree | 53c038c4f51fea33557cf053f28f4d44d585a3d2 /data/rbot/plugins | |
parent | 2d2e6d1fb24e5d687eab7e77bf251ad777ca736d (diff) |
quakeauth plugin: don't error out when identifying with m == nil
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/quakeauth.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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') |