Add clang-format configuration.

For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.
This commit is contained in:
Alexey Sokolov
2015-12-06 22:36:35 +00:00
parent 02f8749a8b
commit 33b0627d75
132 changed files with 12743 additions and 8904 deletions
+10 -5
View File
@@ -17,7 +17,7 @@
#include <znc/Modules.h>
class CStripControlsMod : public CModule {
public:
public:
MODCONSTRUCTOR(CStripControlsMod) {}
EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) override {
@@ -25,7 +25,8 @@ public:
return CONTINUE;
}
EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) override {
EModRet OnChanCTCP(CNick& Nick, CChan& Channel,
CString& sMessage) override {
sMessage.StripControls();
return CONTINUE;
}
@@ -35,7 +36,8 @@ public:
return CONTINUE;
}
EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) override {
EModRet OnChanNotice(CNick& Nick, CChan& Channel,
CString& sMessage) override {
sMessage.StripControls();
return CONTINUE;
}
@@ -51,9 +53,12 @@ public:
}
};
template<> void TModInfo<CStripControlsMod>(CModInfo& Info) {
template <>
void TModInfo<CStripControlsMod>(CModInfo& Info) {
Info.SetWikiPage("stripcontrols");
Info.AddType(CModInfo::UserModule);
}
NETWORKMODULEDEFS(CStripControlsMod, "Strips control codes (Colors, Bold, ..) from channel and private messages.")
NETWORKMODULEDEFS(CStripControlsMod,
"Strips control codes (Colors, Bold, ..) from channel and "
"private messages.")