|
@@ -3,7 +3,15 @@
|
|
|
* nirc
|
|
|
*
|
|
|
* Created by Niklas Bölter on 03.02.10.
|
|
|
- * Copyright 2010 Frubar Corporation. All rights reserved.
|
|
|
+ * Copyright 2010 Frubar Corporation.
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * This program is free software; you can redistribute it and/or modify
|
|
|
+ * it under the terms of the GNU General Public License as published by
|
|
|
+ * the Free Software Foundation; either version 2 of the License, or
|
|
|
+ * (at your option) any later version.
|
|
|
+ *
|
|
|
+ *
|
|
|
*
|
|
|
*/
|
|
|
|
|
@@ -133,8 +141,7 @@ void Controller::disconnected(int cid)
|
|
|
socketmessage(cid, QString("Disconnected from %1").arg(connectionsettings.at(cid).name));
|
|
|
}
|
|
|
void Controller::parse(int cid, QString line)
|
|
|
-{
|
|
|
- qDebug() << QString("(Connection %1) %2").arg(cid).arg(line);
|
|
|
+{
|
|
|
QStringList params;
|
|
|
QString prefstr;
|
|
|
QString command;
|
|
@@ -206,7 +213,6 @@ void Controller::parse(int cid, QString line)
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- qDebug() << "Nickname:" << prefix.nickname << "Username:" << prefix.username << "Hostname:" << prefix.hostname;
|
|
|
}
|
|
|
command = command.toLower();
|
|
|
if(command.contains(QRegExp("[^a-z0-9]+"))) // I don't know enough about QMetaObject, but we better not allow arbitrary input
|
|
@@ -315,14 +321,10 @@ void Controller::tabChanged(QString identifier)
|
|
|
tab.name = identifier.mid(pos+1);
|
|
|
}
|
|
|
updateChannelList();
|
|
|
- qDebug() << "TABCHANGE: identifier:" << tab.identifier;
|
|
|
- qDebug() << "TABCHANGE: cid:" << tab.cid;
|
|
|
- qDebug() << "TABCHANGE: name:" << tab.name;
|
|
|
}
|
|
|
void Controller::updateChannelList()
|
|
|
{
|
|
|
QStringList channellist;
|
|
|
- int i;
|
|
|
if(channels[tab.cid].contains(tab.name))
|
|
|
{
|
|
|
mw->setChannelList(userlists->getUsers(tab.cid, tab.name));
|
|
@@ -465,7 +467,7 @@ void Controller::handleKick(int cid, QStringList params, Prefix prefix)
|
|
|
updateChannelList();
|
|
|
}
|
|
|
}
|
|
|
-void Controller::handle001(int cid, QStringList params, Prefix prefix)
|
|
|
+void Controller::handle001(int, QStringList, Prefix)
|
|
|
{
|
|
|
registered.replace(cid, true);
|
|
|
}
|