summaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-04-03 10:32:18 +0000
committerlittleblack111 <littleblack11111@gmail.com>2025-04-07 16:32:07 +0800
commitc49a4a170658d7e929272ebecd729f3645f36b17 (patch)
tree918e929dfcd7b8420d3cc533d35a3f74590a0395 /src/session.cpp
parent8275219e3f743a1bb31151a3c1a7ee0cc9ca1c49 (diff)
style: clang-format
Diffstat (limited to 'src/session.cpp')
-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();
}