Add module calls for client CAPs

This commit adds new module calls which make it possibly to announce new
capabilities from a module.

Thanks to DarthGandalf for the patch and for not going mad from my comments. :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2071 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-07-07 16:01:15 +00:00
parent 3e150b98f5
commit 9d99e4cc8d
4 changed files with 96 additions and 22 deletions
+3
View File
@@ -113,6 +113,8 @@ public:
void PutModule(const CString& sModule, const CString& sLine);
void PutModNotice(const CString& sModule, const CString& sLine);
bool IsCapEnabled(const CString& sCap) { return 1 == m_ssAcceptedCaps.count(sCap); }
virtual void ReadLine(const CString& sData);
bool SendMotd();
void HelpUser();
@@ -143,6 +145,7 @@ protected:
CString m_sPass;
CString m_sUser;
CSmartPtr<CAuthBase> m_spAuth;
SCString m_ssAcceptedCaps;
};
#endif // !_CLIENT_H