Make modpython support network modules

This commit is contained in:
Kyle Fuller
2011-08-23 20:03:31 +01:00
parent 9a2fed6923
commit 260421e6e8
4 changed files with 28 additions and 26 deletions

View File

@@ -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();