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:
Alexey Sokolov
2015-12-06 23:58:03 +00:00
parent 3861b6a583
commit d185d6f22d
131 changed files with 36734 additions and 36735 deletions
+16 -16
View File
@@ -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(