summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Main.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Main.cc b/src/Main.cc
index ffadd67..e874fcf 100644
--- a/src/Main.cc
+++ b/src/Main.cc
@@ -1,4 +1,5 @@
#include <unistd.h>
+#include <list>
#include "Action.h"
#include "Handle.h"
#include "HttpServ.h"
@@ -10,6 +11,7 @@
#include "Form.h"
#include "Confirm.h"
#include "Table.h"
+#include "IRC.h"
class InPipe : public Handle {
public:
@@ -25,6 +27,10 @@ class InPipe : public Handle {
int main(int argc, char ** argv) {
int p[2], c;
+ list<String> testlist;
+ IRC ircclient("botalacon");
+
+ testlist.push_front("poide");
if (pipe(p)) {
cerr << "Error creating pipe.\n";
@@ -55,6 +61,13 @@ int main(int argc, char ** argv) {
}
try {
+ cerr << "Connecting..." << endl;
+ if (ircclient.Connect()) {
+ cerr << "Doing main loop..." << endl;
+ ircclient.MainLoop();
+ } else {
+ cerr << "Error connecting..." << endl;
+ }
}
catch (GeneralException e) {
cerr << e.GetMsg() << endl;