summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/nickserver/config.rb2
-rw-r--r--lib/nickserver/daemon.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/nickserver/config.rb b/lib/nickserver/config.rb
index 46b6bef..13e284b 100644
--- a/lib/nickserver/config.rb
+++ b/lib/nickserver/config.rb
@@ -59,7 +59,7 @@ module Nickserver
YAML.load(File.read(file_path)).each do |key, value|
begin
self.send("#{key}=", value)
- rescue NoMethodError => exc
+ rescue NoMethodError
STDERR.puts "ERROR in file #{file_path}, '#{key}' is not a valid option"
exit(1)
end
diff --git a/lib/nickserver/daemon.rb b/lib/nickserver/daemon.rb
index 7d0f02a..9b06a3c 100644
--- a/lib/nickserver/daemon.rb
+++ b/lib/nickserver/daemon.rb
@@ -60,7 +60,7 @@ module Nickserver
def daemonize
return bail("Process is already started") if daemon_running?
- pid = fork do
+ _pid = fork do
exit if fork
Process.setsid
exit if fork
@@ -219,7 +219,7 @@ module Nickserver
end
def override_default_config(flag, value)
- flag = flag.sub /^--/, ''
+ flag = flag.sub(/^--/, '')
if Config.respond_to?("#{flag}=")
Config.send("#{flag}=", value)
else