summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/quakeauth.rb3
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')