core: handleMode: Fix persistent modes reset
authorgenius3000 <genius3000@g3k.solutions>
Thu, 11 Jan 2018 04:54:41 +0000 (21:54 -0700)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 1 May 2018 20:25:31 +0000 (22:25 +0200)
commit6e7b4039cde65c37f711c8c4c0b0b405aa9054e1
tree0218bd7424ab1c4e4b750d40fae033563105eebd
parentced382f4e6d6613151bdbf95c1569ca2c83da78e
core: handleMode: Fix persistent modes reset

The check for '-reset' currently comes after a bufferName is
prepended to params, therefore never being true.
Move this check to be first and add a reply to the client.

Closes GH-322.
src/core/coreuserinputhandler.cpp