+void Server::handleCtcpPing(CtcpType ctcptype, QString prefix, QString target, QString param) {
+ if(ctcptype == CtcpQuery) {
+ ctcpReply(userFromMask(prefix), "PING", param);
+ emit displayMsg(Message::Plain, "", tr("Received CTCP PING request by %1").arg(prefix));
+ } else {
+ // display ping answer
+ }
+}
+
+void Server::handleCtcpVersion(CtcpType ctcptype, QString prefix, QString target, QString param) {
+ if(ctcptype == CtcpQuery) {
+ // FIXME use real Info about quasel :)
+ ctcpReply(userFromMask(prefix), "VERSION", QString("Quassel:pre Release:*nix"));
+ emit displayMsg(Message::Plain, "", tr("Received CTCP VERSION request by %1").arg(prefix));
+ } else {
+ // TODO display Version answer
+ }
+}
+