Permalink
Browse files

Parse keys differently.

  • Loading branch information...
1 parent d00ec1f commit cb524ebb878ae92020a7693564af0801f8ba2c47 @polyethene committed Nov 13, 2011
Showing with 11 additions and 2 deletions.
  1. +11 −2 Program.cs
View
13 Program.cs
@@ -8,13 +8,16 @@ partial class Program
{
public static void Main()
{
- #region Password
+ #region Keys
const string conf = Bot.Username + ".conf";
+ var table = ConfRead(new StreamReader(conf));
+
+ #region Password
+
if (!File.Exists(conf))
throw new FileNotFoundException("Configuration file not found.", conf);
- var table = ConfRead(new StreamReader(conf));
var passwd = new SecureString();
const string key = "password";
@@ -31,6 +34,12 @@ public static void Main()
#endregion
+ #region Others
+
+ #endregion
+
+ #endregion
+
Tests(passwd);
var bot = new Bot { Password = passwd };

0 comments on commit cb524eb

Please sign in to comment.