mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Make modpython support network modules
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "../Nick.h"
|
||||
#include "../Chan.h"
|
||||
#include "../User.h"
|
||||
#include "../IRCNetwork.h"
|
||||
#include "../Client.h"
|
||||
#include "../IRCSock.h"
|
||||
#include "../Listener.h"
|
||||
@@ -97,6 +98,7 @@ namespace std {
|
||||
%include "../Nick.h"
|
||||
%include "../Chan.h"
|
||||
%include "../User.h"
|
||||
%include "../IRCNetwork.h"
|
||||
%include "../Client.h"
|
||||
%include "../IRCSock.h"
|
||||
%include "../Listener.h"
|
||||
@@ -165,6 +167,15 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
%extend CIRCNetwork {
|
||||
CString __str__() {
|
||||
return $self->GetName();
|
||||
}
|
||||
CString __repr__() {
|
||||
return "<CIRCNetwork " + $self->GetName() + ">";
|
||||
}
|
||||
}
|
||||
|
||||
%extend CChan {
|
||||
CString __str__() {
|
||||
return $self->GetName();
|
||||
|
||||
Reference in New Issue
Block a user