diff --git a/lib/ruby_gntp.rb b/lib/ruby_gntp.rb index 12a9225..f2a3add 100755 --- a/lib/ruby_gntp.rb +++ b/lib/ruby_gntp.rb @@ -131,10 +131,9 @@ def notify(params, &callback) # instant notification # def self.notify(params, &callback) - host = params[:host] - passwd = params[:passwd] + gntp_args = [params[:app_name], params[:host], params[:passwd]].compact - growl = GNTP.new(params[:app_name], host, passwd) + growl = GNTP.new(*gntp_args) notification = params notification[:name] = params[:app_name] || "Ruby/GNTP notification"