mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Support OnGetAvailableMods in python. #98
Currently this needs patched SWIG. Upstream version crashes ZNC. Hopefully they'll apply my patches upstream soon... As for now, working modpython tarball is available at http://people.znc.in/~darthgandalf/znc/modpython/
This commit is contained in:
@@ -47,14 +47,7 @@ using std::allocator;
|
||||
%include <typemaps.i>
|
||||
%include <stl.i>
|
||||
%include <std_list.i>
|
||||
|
||||
namespace std {
|
||||
template<class K> class set {
|
||||
public:
|
||||
set();
|
||||
set(const set<K>&);
|
||||
};
|
||||
}
|
||||
%include <std_set.i>
|
||||
|
||||
%include "modpython/cstring.i"
|
||||
%template(_stringlist) std::list<CString>;
|
||||
@@ -71,6 +64,7 @@ namespace std {
|
||||
%template(VIRCNetworks) std::vector<CIRCNetwork*>;
|
||||
%template(VChannels) std::vector<CChan*>;
|
||||
%template(MNicks) std::map<CString, CNick>;
|
||||
%template(SModInfo) std::set<CModInfo>;
|
||||
|
||||
%typemap(in) CString& {
|
||||
String* p;
|
||||
|
||||
Reference in New Issue
Block a user