X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fquakeauth.rb;h=b4b8b8d637846f15259daa452fa90de4011dfb4b;hb=8e44e8a62cf3509d1b0ba5dd4d0d24be0f5b4fde;hp=10257adf099e78d067b45ef3cfab66510f65267f;hpb=2d2e6d1fb24e5d687eab7e77bf251ad777ca736d;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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')