From 57ec86fb8047e3b5b539bbdb9c833e7cd5f95f31 Mon Sep 17 00:00:00 2001 From: Gryllida A Date: Mon, 12 Mar 2012 22:08:45 +1030 Subject: [PATCH 1/1] resolve #1145 (parse 330 in /whowas) --- src/core/eventstringifier.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/eventstringifier.cpp b/src/core/eventstringifier.cpp index 688886e1..77c7c526 100644 --- a/src/core/eventstringifier.cpp +++ b/src/core/eventstringifier.cpp @@ -440,7 +440,12 @@ void EventStringifier::processIrcEvent330(IrcEvent *e) { 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 */ -- 2.20.1