mirror of
https://github.com/znc/znc.git
synced 2026-07-21 09:03:32 +02:00
Teach modperl and modpython about CMessage and new hooks which accept it.
Fix #1084 Fix #1085
This commit is contained in:
@@ -105,6 +105,9 @@ class MCString : public std::map<CString, CString> {};
|
||||
%template(BufLines) std::deque<CBufLine>;
|
||||
%template(VVString) std::vector<VCString>;
|
||||
|
||||
#define REGISTER_ZNC_MESSAGE(M) \
|
||||
%template(As_ ## M) CMessage::As<M>;
|
||||
|
||||
%typemap(out) std::map<CString, CNick> {
|
||||
HV* myhv = newHV();
|
||||
for (std::map<CString, CNick>::const_iterator i = $1.begin(); i != $1.end(); ++i) {
|
||||
@@ -129,6 +132,7 @@ class MCString : public std::map<CString, CString> {};
|
||||
%template(ZNCSocketManager) TSocketManager<CZNCSock>;
|
||||
%include "../include/znc/Socket.h"
|
||||
%include "../include/znc/FileUtils.h"
|
||||
%include "../include/znc/Message.h"
|
||||
%include "../include/znc/Modules.h"
|
||||
%include "../include/znc/Nick.h"
|
||||
%include "../include/znc/Chan.h"
|
||||
|
||||
Reference in New Issue
Block a user