mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
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:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user