diff options
author | Pixel <Pixel> | 2001-09-23 22:10:43 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-09-23 22:10:43 +0000 |
commit | ec2ecbd35bea64c88ab783b06100edc65c418048 (patch) | |
tree | f270dc1a013c3fe26170e63bc2be8d8a3ca936d0 /src | |
parent | 76fde1f5b754845bd9b40cf9b2f15734686f6d09 (diff) |
Some IRC features...
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.cc | 13 |
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; |