Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/lib/ircd.rb b/lib/ircd.rb
- index eb9ca1f..aca617d 100644
- --- a/lib/ircd.rb
- +++ b/lib/ircd.rb
- @@ -156,7 +156,7 @@ class Application
- # Set up logging
- if logging or debug
- - Dir.mkdir('var') unless Filegit dif.exists?('var')
- + Dir.mkdir('var') unless File.exists?('var')
- self.logger = Logger.new('var/ircd.log', 'weekly')
- end
- else
- diff --git a/lib/ircd/client.rb b/lib/ircd/client.rb
- index 646914d..a5a9ef0 100644
- --- a/lib/ircd/client.rb
- +++ b/lib/ircd/client.rb
- @@ -8,7 +8,7 @@
- # encoding: utf-8
- # Import required application modules
- -%w(event loggable).each { |m| require m }
- +%w(event loggable).each { |m| require 'ircd/' + m }
- module IRC
- diff --git a/lib/ircd/config.rb b/lib/ircd/config.rb
- index 39294af..4ef6e37 100644
- --- a/lib/ircd/config.rb
- +++ b/lib/ircd/config.rb
- @@ -71,6 +71,10 @@ class Application
- def password(password)
- self.password = password
- end
- +
- + def hostmask(hostmask)
- + self.hostmask = hostmask
- + end
- end
- end
- end
Add Comment
Please, Sign In to add comment