Show IRC server error messages when unexpected
authorShane Synan <digitalcircuit36939@gmail.com>
Tue, 6 Sep 2016 21:33:58 +0000 (16:33 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 4 Apr 2018 21:14:03 +0000 (23:14 +0200)
commitf8ebd4fd9a59bcb34a6ce45ce1f0b4a22beae884
tree2b3549ebec73f04404566835992f03f5627f2511
parent45a043425865562d49c86df81a22b4a5545664d5
Show IRC server error messages when unexpected

Handle ERROR replies from IRC servers, displaying the error message
in the status buffer.

Add method 'disconnectExpected' to CoreNetwork to expose when a
disconnect is expected.  As we're expecting a server error message
when issuing QUIT, hide it to avoid showing redundant information.

This fixes users getting disconnected by the server without any way
to find out why.

Resolves GH-238.

(cherry picked from commit 56b2bf3a1a742971a5de7ced1b57024424fc78b8)
src/common/eventmanager.h
src/core/corenetwork.h
src/core/coresessioneventprocessor.cpp
src/core/coresessioneventprocessor.h
src/core/eventstringifier.cpp
src/core/eventstringifier.h