Make modpython support network modules
This commit is contained in:
1 parent
9a2fed6923
commit
260421e6e8
4 files changed
+28
-26
No files matched your search
@@ -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