mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix some unitialized fields in modules.
They are not used before OnLoad anyway, but Coverity will be happier.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
using std::stringstream;
|
||||
|
||||
class CNotesMod : public CModule {
|
||||
bool bShowNotesOnLogin;
|
||||
bool m_bShowNotesOnLogin{};
|
||||
|
||||
void ListCommand(const CString &sLine) {
|
||||
ListNotes();
|
||||
@@ -85,14 +85,14 @@ public:
|
||||
virtual ~CNotesMod() {}
|
||||
|
||||
virtual bool OnLoad(const CString& sArgs, CString& sMessage) override {
|
||||
bShowNotesOnLogin = !sArgs.Equals("-disableNotesOnLogin");
|
||||
m_bShowNotesOnLogin = !sArgs.Equals("-disableNotesOnLogin");
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual CString GetWebMenuTitle() override { return "Notes"; }
|
||||
|
||||
virtual void OnClientLogin() override {
|
||||
if (bShowNotesOnLogin) {
|
||||
if (m_bShowNotesOnLogin) {
|
||||
ListNotes(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user