Commits

Anonymous committed 07a42da

ooh, looks shiny :3

Comments (0)

Files changed (2)

 use Config::Scoped;
 use Module::Load;
 use Keldair;
+
+my $parser = Config::Scoped->new( file => "$Bin/../etc/keldair.conf");
+my $SETTINGS = $parser->parse;
+
+my $irc = Keldair::New(
+    "NICK" => $SETTINGS->{'keldair'}->{'nick'},
+    "USER" => $SETTINGS->{'keldair'}->{'user'},
+    "SERVER" => $SETTINGS->{'uplink'}->{'host'},
+    "PORT" => $SETTINGS->{'uplink'}->{'port'}
+    );
-# Generated by Keldair setup script
-# Do not modify this config unless you know what you're doing!
-
-server {
+uplink {
     host = irc.connecttek.net
     port = 6667
 }
 
 keldair {
     nick = keldair
-    ident = keldair
-    real = "LOLPIE"
+    user = keldair
+    real = "Keldair IRC framework"
 }
-
-channels {
-    debug = "#chazz"
-    general = "#chazz,#connecttek,#unmoderated"
-    tourettes = "#connecttek"
-}
-
-admin {
-    nick = "chazz"
-    real = "Chazz Wolcott"
-    email = 'chazz@staticbox.net'
-}
-
-general {
-    cmdchar = '!'
-    modules = "Keldair::Numerics::001 Keldair::NickServ Keldair::ModManager"
-    fork = no
-    admin = 'chazz'
-}