From ec2ecbd35bea64c88ab783b06100edc65c418048 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 23 Sep 2001 22:10:43 +0000 Subject: Some IRC features... --- src/Main.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') 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 +#include #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 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; -- cgit v1.2.3