X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fquakeauth.rb;h=40b91e11b878fc9308e1379c22ae0b99ec108702;hb=2e33012eb5eb8cf121059d06f07f6950141deccc;hp=10257adf099e78d067b45ef3cfab66510f65267f;hpb=619870dc4934ca1360d925a6671e61ed15a8f1a2;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/quakeauth.rb b/data/rbot/plugins/quakeauth.rb index 10257adf..40b91e11 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) @@ -44,11 +45,11 @@ class QPlugin < Plugin end def connect - identify(nil, nil) + identify(nil, {}) if on_quakenet? 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')