Alexey Sokolov
9fd4149d73
Fix modperl and modpython compilation.
...
Also fix few string-related inconsistences.
2012-08-15 00:38:23 +07:00
Alexey Sokolov
fcc7839771
Improvements to modpython.
...
1. Be able to write binary data to any sockets, not only to ones created
from python.
2. Add support for CSmartPtr<CWebSession>
2012-08-13 20:01:07 +07:00
Alexey Sokolov
7e8f281ee5
Add vector<CListener*> to modperl/modpython.
2012-08-12 22:34:02 +07:00
Alexey Sokolov
5a3db7f91f
Fix vim modeline for modpython.i
2012-07-28 20:27:29 +07:00
Alexey Sokolov
ff755b8812
Modpython: support OnLoginAttempt.
...
So python part of #98 is completed.
2012-07-28 11:31:36 +07:00
Alexey Sokolov
ac1b183583
Modpython: MCString as a normal dict-like object.
...
See github issue #93
2012-07-28 02:57:31 +07:00
Alexey Sokolov
219e6a97ce
Support OnClientCapLs in modpython #98
2012-07-28 01:37:58 +07:00
Alexey Sokolov
5e711011c5
Support OnGetAvailableMods in python. #98
...
Currently this needs patched SWIG.
Upstream version crashes ZNC.
Hopefully they'll apply my patches upstream soon...
As for now, working modpython tarball is available at
http://people.znc.in/~darthgandalf/znc/modpython/
2012-07-27 01:02:04 +07:00
Alexey Sokolov
62c9ac1a0b
using in headers is evil :(
2012-07-26 20:46:11 +07:00
Alexey Sokolov
5656e14aa2
Progress on modpython global hooks.
...
OnModuleLoading, OnModuleUnloading, OnGetModInfo work fine.
Need to add: OnClientCapLs, OnGetAvailableMods, OnLoginAttempt
See #98
2012-07-22 18:27:07 +07:00
Torsten Landschoff
4ca8b50e45
Fix building modpython with swig #174
2012-05-30 09:49:42 +01:00
Alexey Sokolov
f374874b1a
Fix several issues in modpython.
...
1. In several cases CString wasn't handled properly.
2. Some container-like object didn't return from functions properly.
3. Buffer.h was missing
2012-01-02 14:40:50 +07:00
Alexey Sokolov
13bfec0809
Python and Perl should know that off_t is integer type.
2012-01-02 02:44:09 +07:00
Un1matr1x
73270ff023
Welcome in 2012
2012-01-01 09:30:19 +01:00
Alexey Sokolov
e354c24ac1
Move ZNC headers into own directory.
...
Yes, this breaks backwards compatibility, so what?
It's already broken with network stuff anyway.
2011-09-23 03:31:58 +07:00
Alexey Sokolov
508ca27a4c
Move CConfigEntry out of CConfig.
...
This exposes CConfigEntry to SWIG, and therefore to modperl/modpython.
2011-09-07 02:09:40 +07:00
Kyle Fuller
b75e0b71ae
modpython: Supress "Nested struct not currently supported (ignored)." warnings from
2011-09-05 21:39:59 +00:00
Kyle Fuller
260421e6e8
Make modpython support network modules
2011-08-25 21:17:28 +01:00
Kyle Fuller
f44f307b24
Add a config writer
2011-08-21 13:40:14 +01:00
Alexey Sokolov
0c9eae226e
Fix global python modules.
2011-08-21 13:34:23 +01:00
Kyle Fuller
e83e14ab67
Do not include DCCSock in mod(perl|python)
2011-06-01 22:19:30 +01:00
Kyle Fuller
8f508cb4a5
Migrate dcc bouncing to its own module
2011-06-01 20:21:27 +01:00
Alexey Sokolov
e51b7daedc
Merge branch 'py' of https://github.com/kylef/znc into kylef-py
...
Conflicts:
modules/modpython/znc.py
2011-04-03 20:13:17 +07:00
Alexey Sokolov
e746438022
Parse new ExecSock.h and ZNCDebug.h with SWIG.
...
That functionality was accessible by perl and python modules before.
Now that stuff is in own headers, so let's parse them too,
to have them still be able to use this.
2011-04-03 19:13:47 +07:00
Kyle Fuller
1fc9aeefec
Add __repr__ methods to CUser, CChan, CNick in modpython
2011-04-01 17:13:17 +01:00
Kyle Fuller
9db98d7cee
Add __str__ methods to CModule, CUser, CChan, and CNick in modpython
2011-04-01 01:19:57 +01:00
Alexey Sokolov
45209eca33
modpython: Make strings to be stringable.
...
Now you can use str() on objects of znc.String.
The same is true for arguments which represent CString&.
2011-03-31 20:41:59 +07:00
Alexey Sokolov
b8043c3aac
modpython: move CPyRetString to own header.
...
It was defined twice: in modpython.cpp, and in modpython.i
And there is a fake CPyRetString in modpython.i
Now both places which use real CPyRetString include the file instead.
Fake CPyRetString is still in modpython.i
2011-03-31 20:13:19 +07:00
psychon
b9b0fd4c87
Oh, shiny... NOT
...
(Yes, it's that time of the year again)
Signed-off-by: Uli Schlachter <psychon@znc.in >
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2260 726aef4b-f618-498e-8847-2d620e286838
2011-01-14 17:03:24 +00:00
darthgandalf
b6c8e10633
Include zncconfig.h before any system headers in modpython and modperl bindings.
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2255 726aef4b-f618-498e-8847-2d620e286838
2011-01-07 18:01:26 +00:00
darthgandalf
dc8a39db53
Add vim modelines to some files.
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2222 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 22:02:26 +00:00
darthgandalf
a564e25c13
Add modpython module which allows to write ZNC modules on python3.
...
Notice for distro maintainers: perl interpreter is required to compile modpython.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2196 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:52:53 +00:00