summaryrefslogtreecommitdiff
path: root/lib/nickserver/server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nickserver/server.rb')
-rw-r--r--lib/nickserver/server.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nickserver/server.rb b/lib/nickserver/server.rb
index 2f4d4f0..6234fd6 100644
--- a/lib/nickserver/server.rb
+++ b/lib/nickserver/server.rb
@@ -72,8 +72,10 @@ module Nickserver
elsif @http_post_content
params = CGI.parse(@http_post_content)
end
- if params["address"] && params["address"].any?
+ if params && params["address"] && params["address"].any?
return params["address"].first
+ else
+ return nil
end
end