displayMsg(e, Message::Error, e->params().join(" "), e->prefix());
break;
- // Server error messages, display them in red. First param will be appended.
+ // Server error messages, display them in red. Colon between first param and rest.
case 401: {
if(!checkParamCount(e, 1))
return;
- QString target = e->params().takeFirst();
- displayMsg(e, Message::Error, e->params().join(" ") + " " + target, e->prefix(), target, Message::Redirected);
+ QStringList params = e->params();
+ QString target = params.takeFirst();
+ displayMsg(e, Message::Error, target + ": " + params.join(" "), e->prefix(), target, Message::Redirected);
break;
}
if(!checkParamCount(e, 1))
return;
- QString channelName = e->params().takeFirst();
- displayMsg(e, Message::Error, e->params().join(" ") + " " + channelName, e->prefix());
+ QStringList params = e->params();
+ QString channelName = params.takeFirst();
+ displayMsg(e, Message::Error, channelName + ": " + params.join(" "), e->prefix());
break;
}
if(!checkParamCount(e, 1))
return;
- QString p = e->params().takeFirst();
- displayMsg(e, Message::Error, p + ": " + e->params().join(" "));
+ QStringList params = e->params();
+ QString p = params.takeFirst();
+ displayMsg(e, Message::Error, p + ": " + params.join(" "));
break;
}
if(e->params().count() < 3)
return;
- displayMsg(e, Message::Server, tr("[Whois] %1 is authed as %2").arg(e->params()[0], e->params()[1]));
+ // check for whois or whowas
+ if (_whois) {
+ displayMsg(e, Message::Server, tr("[Whois] %1 is authed as %2").arg(e->params()[0], e->params()[1]));
+ } else {
+ displayMsg(e, Message::Server, tr("[Whowas] %1 was authed as %2").arg(e->params()[0], e->params()[1]));
+ }
}
/* RPL_NOTOPIC */