X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Feventstringifier.cpp;h=c301dbf989fa3516ae18800b594a9c28da3c6402;hp=1578f78e314e0127aa1b333ed3a0ca3cca110ab4;hb=712781ef33198acb7267e02ee6f8f9bfc8598d5a;hpb=29a45f620131394d4b80ad8c4a58b8acb359df76 diff --git a/src/core/eventstringifier.cpp b/src/core/eventstringifier.cpp index 1578f78e..c301dbf9 100644 --- a/src/core/eventstringifier.cpp +++ b/src/core/eventstringifier.cpp @@ -154,7 +154,10 @@ void EventStringifier::processIrcEventJoin(IrcEvent *e) { displayMsg(e, Message::Join, e->params()[0], e->prefix(), e->params()[0]); } -void EventStringifier::earlyProcessIrcEventKick(IrcEvent *e) { +void EventStringifier::processIrcEventKick(IrcEvent *e) { + if(!checkParamCount(e, 2)) + return; + IrcUser *victim = e->network()->ircUser(e->params().at(1)); if(victim) { QString channel = e->params().at(0); @@ -178,7 +181,7 @@ void EventStringifier::processIrcEventMode(IrcEvent *e) { } // this needs to be called before the ircuser is renamed! -void EventStringifier::earlyProcessIrcEventNick(IrcEvent *e) { +void EventStringifier::processIrcEventNick(IrcEvent *e) { if(!checkParamCount(e, 1)) return; @@ -196,7 +199,7 @@ void EventStringifier::earlyProcessIrcEventNick(IrcEvent *e) { displayMsg(e, Message::Nick, newnick, sender, channel); } -void EventStringifier::earlyProcessIrcEventPart(IrcEvent *e) { +void EventStringifier::processIrcEventPart(IrcEvent *e) { if(!checkParamCount(e, 1)) return;