summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/session.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/session.cpp b/src/session.cpp
index f61c34e..36c2c6f 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -130,9 +130,11 @@ std::unique_ptr<CSession::SRecvData> CSession::read() {
std::unique_ptr<CSession::SRecvData> CSession::read(const std::string &msg, bool bypassDeaf) {
const auto deaf = isDeaf();
- if (bypassDeaf && deaf) setDeaf(false);
+ if (bypassDeaf && deaf)
+ setDeaf(false);
write(NONEWLINE, "{}", msg, false);
- if (bypassDeaf && deaf) setDeaf(true);
+ if (bypassDeaf && deaf)
+ setDeaf(true);
m_isReading = true;
return read();
}