X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresessioneventprocessor.cpp;h=7d5d24445e5ff23f8236363680622b10278698c4;hp=bb2c211b5ca0f0ce7bb333b25bc7c7fceea7a518;hb=712781ef33198acb7267e02ee6f8f9bfc8598d5a;hpb=68eca2c9f0ae5acbda19a6965a2630bd4649ef24 diff --git a/src/core/coresessioneventprocessor.cpp b/src/core/coresessioneventprocessor.cpp index bb2c211b..7d5d2444 100644 --- a/src/core/coresessioneventprocessor.cpp +++ b/src/core/coresessioneventprocessor.cpp @@ -153,7 +153,7 @@ void CoreSessionEventProcessor::processIrcEventJoin(IrcEvent *e) { } } -void CoreSessionEventProcessor::processIrcEventKick(IrcEvent *e) { +void CoreSessionEventProcessor::lateProcessIrcEventKick(IrcEvent *e) { if(checkParamCount(e, 2)) { e->network()->updateNickFromMask(e->prefix()); IrcUser *victim = e->network()->ircUser(e->params().at(1)); @@ -270,7 +270,7 @@ void CoreSessionEventProcessor::processIrcEventMode(IrcEvent *e) { } } -void CoreSessionEventProcessor::processIrcEventNick(IrcEvent *e) { +void CoreSessionEventProcessor::lateProcessIrcEventNick(IrcEvent *e) { if(checkParamCount(e, 1)) { IrcUser *ircuser = e->network()->updateNickFromMask(e->prefix()); if(!ircuser) { @@ -288,7 +288,7 @@ void CoreSessionEventProcessor::processIrcEventNick(IrcEvent *e) { } } -void CoreSessionEventProcessor::processIrcEventPart(IrcEvent *e) { +void CoreSessionEventProcessor::lateProcessIrcEventPart(IrcEvent *e) { if(checkParamCount(e, 1)) { IrcUser *ircuser = e->network()->updateNickFromMask(e->prefix()); if(!ircuser) { @@ -302,6 +302,12 @@ void CoreSessionEventProcessor::processIrcEventPart(IrcEvent *e) { } } +void CoreSessionEventProcessor::processIrcEventPing(IrcEvent *e) { + QString param = e->params().count()? e->params().first() : QString(); + // FIXME use events + coreNetwork(e)->putRawLine("PONG " + coreNetwork(e)->serverEncode(param)); +} + void CoreSessionEventProcessor::processIrcEventPong(IrcEvent *e) { // the server is supposed to send back what we passed as param. and we send a timestamp // but using quote and whatnought one can send arbitrary pings, so we have to do some sanity checks