From da0f943bf34341c15763bc55b6d04ff836e5acf1 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 13 Jun 2025 20:20:27 +0800 Subject: style: clang-format --- src/core/session.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/core/session.hpp') diff --git a/src/core/session.hpp b/src/core/session.hpp index 9a953fc..5ca193c 100644 --- a/src/core/session.hpp +++ b/src/core/session.hpp @@ -1,10 +1,10 @@ #pragma once +#include "../debug/format.hpp" #include "../misc/FileDescriptor.hpp" +#include "../misc/memory.hpp" #include "chatManager.hpp" -#include "../debug/format.hpp" #include -#include "../misc/memory.hpp" #include #include #include @@ -33,7 +33,7 @@ class CSession { UP read(); UP read(const std::string &msg, bool bypassDeaf = false); - bool write(const std::string &msg); + bool write(const std::string &msg); template bool write(std::format_string fmt, Args &&...args); template @@ -57,14 +57,14 @@ class CSession { WRITE }; - WP self; + WP self; SP m_sockfd; - sockaddr_in m_addr; - socklen_t m_addrLen = sizeof(m_addr); - std::string m_name; - std::string m_ip; - int m_port; - bool m_isAdmin = false; + sockaddr_in m_addr; + socklen_t m_addrLen = sizeof(m_addr); + std::string m_name; + std::string m_ip; + int m_port; + bool m_isAdmin = false; std::optional m_szReading = std::nullopt; bool m_bMuted = false; -- cgit v1.2.3