X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresessioneventprocessor.cpp;h=d5649730a1b516a2f07e1c0b974ea124c4c9672b;hp=bb2c211b5ca0f0ce7bb333b25bc7c7fceea7a518;hb=29a45f620131394d4b80ad8c4a58b8acb359df76;hpb=68eca2c9f0ae5acbda19a6965a2630bd4649ef24 diff --git a/src/core/coresessioneventprocessor.cpp b/src/core/coresessioneventprocessor.cpp index bb2c211b..d5649730 100644 --- a/src/core/coresessioneventprocessor.cpp +++ b/src/core/coresessioneventprocessor.cpp @@ -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