mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
clang-format: switch tabs to spaces
I like tabs, but I have to admit that spaces make source code more consistent, because every editor/viewer tends to render tabs differently :(
This commit is contained in:
+16
-16
@@ -19,32 +19,32 @@
|
||||
|
||||
class CNotifyConnectMod : public CModule {
|
||||
public:
|
||||
MODCONSTRUCTOR(CNotifyConnectMod) {}
|
||||
MODCONSTRUCTOR(CNotifyConnectMod) {}
|
||||
|
||||
void OnClientLogin() override { NotifyAdmins("attached"); }
|
||||
void OnClientLogin() override { NotifyAdmins("attached"); }
|
||||
|
||||
void OnClientDisconnect() override { NotifyAdmins("detached"); }
|
||||
void OnClientDisconnect() override { NotifyAdmins("detached"); }
|
||||
|
||||
private:
|
||||
void SendAdmins(const CString& msg) {
|
||||
CZNC::Get().Broadcast(msg, true, nullptr, GetClient());
|
||||
}
|
||||
void SendAdmins(const CString& msg) {
|
||||
CZNC::Get().Broadcast(msg, true, nullptr, GetClient());
|
||||
}
|
||||
|
||||
void NotifyAdmins(const CString& event) {
|
||||
CString client = GetUser()->GetUserName();
|
||||
if (GetClient()->GetIdentifier() != "") {
|
||||
client += "@";
|
||||
client += GetClient()->GetIdentifier();
|
||||
}
|
||||
CString ip = GetClient()->GetRemoteIP();
|
||||
void NotifyAdmins(const CString& event) {
|
||||
CString client = GetUser()->GetUserName();
|
||||
if (GetClient()->GetIdentifier() != "") {
|
||||
client += "@";
|
||||
client += GetClient()->GetIdentifier();
|
||||
}
|
||||
CString ip = GetClient()->GetRemoteIP();
|
||||
|
||||
SendAdmins(client + " " + event + " (from " + ip + ")");
|
||||
}
|
||||
SendAdmins(client + " " + event + " (from " + ip + ")");
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
void TModInfo<CNotifyConnectMod>(CModInfo& Info) {
|
||||
Info.SetWikiPage("notify_connect");
|
||||
Info.SetWikiPage("notify_connect");
|
||||
}
|
||||
|
||||
GLOBALMODULEDEFS(
|
||||
|
||||
Reference in New Issue
Block a user