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, 14 Sep 2016 20:45:38 +0000 (22:45 +0200)
commit56b2bf3a1a742971a5de7ced1b57024424fc78b8
tree3254a5b7e0677646c4b1d458b00283d2358da5fb
parentaf3b5761f118a0be37f9713e529efd874bf8e11e
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.
src/common/eventmanager.h
src/core/corenetwork.h
src/core/coresessioneventprocessor.cpp
src/core/coresessioneventprocessor.h
src/core/eventstringifier.cpp
src/core/eventstringifier.h