mercenary/guiapp/main.cpp
Correl Roush 0381859219 Imported the QT4 IRC Client project, along with the mIRC script parser
that will eventually be integrated into it


git-svn-id: file:///srv/svn/ircclient/trunk@1 a9804ffe-773b-11dd-bd7c-89c3ef1d2733
2008-08-31 09:08:24 +00:00

18 lines
490 B
C++

#include <QDialog>
#include "../src/ircclient.h"
#include "chatwindow.h"
#include "messagehandler.h"
int main( int argc, char *argv[] ) {
QApplication app( argc, argv );
IRCClient *irc = new IRCClient();
MessageHandler *mh = new MessageHandler( irc );
QObject::connect( &app, SIGNAL( aboutToQuit() ), irc, SLOT( quit() ) );
mh->show();
irc->connectAndRegister( argc > 1 ? argv[1] : "dev1", 6667, argc > 2 ? argv[2] : "Test", "correlr", "Correl Roush" );
return app.exec();
}