mirror of
https://github.com/znc/znc.git
synced 2026-08-12 03:42:48 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user