Permalink
Browse files

Merge branch 'py' of https://github.com/kylef/znc into kylef-py

Conflicts:
	modules/modpython/znc.py
  • Loading branch information...
Alexey Sokolov
Alexey Sokolov committed Apr 3, 2011
2 parents 299e1f1 + 233566e commit e51b7daedcf523313597d845ac79acef587e205e
Showing with 536 additions and 316 deletions.
  1. +30 −0 modules/modpython/modpython.i
  2. +506 −316 modules/modpython/znc.py
@@ -123,6 +123,9 @@ public:
};
%extend CModule {
+ CString __str__() {
+ return $self->GetModName();
+ }
MCString_iter BeginNV_() {
return MCString_iter($self->BeginNV());
}
@@ -146,6 +149,33 @@ public:
}
}
+%extend CUser {
+ CString __str__() {
+ return $self->GetUserName();
+ }
+ CString __repr__() {
+ return "<CUser " + $self->GetUserName() + ">";
+ }
+};
+
+%extend CChan {
+ CString __str__() {
+ return $self->GetName();
+ }
+ CString __repr__() {
+ return "<CChan " + $self->GetName() + ">";
+ }
+};
+
+%extend CNick {
+ CString __str__() {
+ return $self->GetNick();
+ }
+ CString __repr__() {
+ return "<CNick " + $self->GetHostMask() + ">";
+ }
+};
+
/* Web */
%template(StrPair) pair<CString, CString>;
Oops, something went wrong.

0 comments on commit e51b7da

Please sign in to comment.