#include <IrcMessage>
#include <IrcCommand>
#include <QCoreApplication>
#include <QTimer>
{
bufferModel.setConnection(this);
}
{
}
{
if (message->isPrivate()) {
parser.setTarget(message->
nick());
} else {
parser.setTarget(message->
target());
parser.setTriggers(
QStringList() <<
"!" << nickName().append(
":"));
}
if (cmd) {
} else {
sendCommand(cmd);
connect(this, SIGNAL(disconnected()), qApp, SLOT(quit()));
}
}
}
}
{
commands = parser.commands();
foreach (
const QString& command, commands) {
QString syntax = parser.syntax(command);
}
}