Fixed small bug in CTCP handling: userFromMask -> nickFromMask
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 19 May 2007 02:01:04 +0000 (02:01 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 19 May 2007 02:01:04 +0000 (02:01 +0000)
core/server.cpp

index 01cf281..fe0da4c 100644 (file)
@@ -866,7 +866,7 @@ void Server::handleCtcpAction(CtcpType ctcptype, QString prefix, QString target,
 
 void Server::handleCtcpPing(CtcpType ctcptype, QString prefix, QString target, QString param) {
   if(ctcptype == CtcpQuery) {
-    ctcpReply(userFromMask(prefix), "PING", param);
+    ctcpReply(nickFromMask(prefix), "PING", param);
     emit displayMsg(Message::Plain, "", tr("Received CTCP PING request by %1").arg(prefix));
   } else {
     // display ping answer
@@ -875,8 +875,8 @@ void Server::handleCtcpPing(CtcpType ctcptype, QString prefix, QString target, Q
 
 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"));
+    // FIXME use real Info about quassel :)
+    ctcpReply(nickFromMask(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