Commit Graph

2933 Commits

Author SHA1 Message Date
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 d7bd8d8a04 Merge branch 'master' of github.com:znc/znc 2012-08-12 22:35:57 +07:00
Alexey Sokolov 7e8f281ee5 Add vector<CListener*> to modperl/modpython. 2012-08-12 22:34:02 +07:00
Kyle Fuller 7c1e41acc7 Don't replace our motd with a different servers motd
Fixes #167
2012-08-12 22:22:19 +07:00
Kyle Fuller f8dc7d5cd5 route_replies: Follow rfc1459
Closes #190
2012-08-12 21:49:08 +07:00
Alexey Sokolov 8360e906d5 It was bad idea to set *macEXITER to false inside MODULECALL :(
There're places where it's initialized to true before calling
MODULECALL.
2012-08-12 03:12:42 +07:00
Alexey Sokolov 27aa7036f5 Fix #117 2012-08-10 19:32:27 +07:00
Alexey Sokolov 2370567f9c Don't show message about missing motd by default.
To enable it, load missingmotd module.
Fix #202
2012-08-09 22:58:20 +07:00
Alexey Sokolov d37cb447a0 Use gettimeofday instead of clock_gettime.
POSIX.1-2008 deprecates gettimeofday...
So perhaps it will be changed back in future.

For now gettimeofday is more portable :(
2012-08-09 00:37:16 +07:00
Alexey Sokolov 54f558a4ee Fix configure script 2012-08-08 23:25:36 +07:00
Alexey Sokolov 3d152b160f Check for SWIG's features, not only version. 2012-08-08 23:16:57 +07:00
Alexey Sokolov 9ede566cd2 Generate modpython.tar.bz2 2012-08-08 01:34:28 +07:00
Alexey Sokolov c050356a24 Generate modperl.tar.bz2 2012-08-08 01:29:18 +07:00
Alexey Sokolov 44b382c6fc Update server-time implementation to match new standard. #181 2012-08-05 09:45:48 +07:00
Alexey Sokolov 325a3471da Fix build.
Thanks to Vampi for reporting this.
2012-07-29 00:10:52 +07:00
Alexey Sokolov cacc5044e8 Fix build.
Thanks again goes to fred
2012-07-28 21:33:08 +07:00
Alexey Sokolov bf5d9c8517 Fix build.
Thanks to fred for reporting this.
2012-07-28 21:26:02 +07:00
Alexey Sokolov 538aa77399 Modperl: read values from MCString #93
Example:
my $x = $self->GetNetwork->GetIRCSock->GetISupport;
$x->get("CHANMODES")

No iterating through all values though :(
2012-07-28 21:25:28 +07:00
Alexey Sokolov 5a3db7f91f Fix vim modeline for modpython.i 2012-07-28 20:27:29 +07:00
Alexey Sokolov 3145c5054c Allow perl modules to be loaded not by modperl 2012-07-28 19:35:22 +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 f988630ac8 Merge branch 'master' of github.com:znc/znc 2012-07-28 02:58:21 +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
Kyle Fuller 8a44c87272 Don't require CTimer's label to be unique if its empty (Fixes #92) 2012-07-28 00:09:15 +07:00
Kyle Fuller 721d603383 Support messages directed to specific user prefixes
Closes #195
2012-07-28 00:07:46 +07:00
Alexey Sokolov 592b5d158d Block using --enable-swig until SWIG is fixed.
We don't want users to get crashy ZNC, do we?
2012-07-27 09:23:35 +07:00
Alexey Sokolov a988546961 Make description of AddServer a bit more clear. 2012-07-27 09:05:42 +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 85252f2f5b Protect CreatePyModule from CModule* 2012-07-26 20:53:17 +07:00
Alexey Sokolov 62c9ac1a0b using in headers is evil :( 2012-07-26 20:46:11 +07:00
Alexey Sokolov f1932b9322 Make post-installation message a bit more visible. 2012-07-26 20:21:49 +07:00
Alexey Sokolov 07cb02c5d8 Show 410 to client for unknown CAP subcommand.
It's in CAP specs.
2012-07-24 19:51:53 +07:00
Alexey Sokolov 9e4733d446 Fix znc-buildmod to work with ld --as-needed. #199 2012-07-23 21:31:04 +07:00
Alexey Sokolov e5af3848d8 Remove too many spaces from webadmin title="" attributes. 2012-07-22 21:26:27 +07:00
Alexey Sokolov 03b5d815ee Ups, remove unfinished function from modpython for now.
See #98
2012-07-22 21:25:25 +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
Alexey Sokolov 5b50003f33 Ignore fail of git-describe differently.
Now it doesn't show an error message and still continues.

Thanks to Han` for reporting this.
2012-07-22 17:34:05 +07:00
Alexey Sokolov a131127770 Show commit id in version for git builds. 2012-07-21 23:27:53 +07:00
Alexey Sokolov a88d9c7a7f Fix a warning in Csocket.cpp.
The patch was sent upstream too.
2012-07-21 23:27:03 +07:00
Alexey Sokolov 165c9ed082 Add network selector to send_raw's web page. 2012-07-20 22:36:13 +07:00
Alexey Sokolov 80acaa7c16 Add ShowBindHost command. 2012-07-19 01:08:16 +07:00
Alexey Sokolov 38b9525ad3 Fix webadmin to deny setting bindhost not from list. 2012-07-19 01:00:11 +07:00
Alexey Sokolov cebc093254 Per-network bind hosts.
Fix #147
2012-07-19 00:59:41 +07:00
Alexey Sokolov 7951a50200 Use loadmod --type=type syntax for modules.
See github issue #171
2012-07-18 22:15:51 +07:00
Alexey Sokolov fca5eebe53 Fix presense and help of module arguments.
See github issue #192
2012-07-17 09:14:02 +07:00
Kyle Fuller 373490f2d1 Don't try and unload ourself, we can't do this
Closes #194
2012-07-17 00:42:18 +01:00
Kyle Fuller 9be208c242 Drop znc-config, change znc-buildmod so it doesn't need znc-config
This fixes issues where znc-buildmod was grabbing a different ZNC installation
from path.
2012-07-04 22:21:37 +01:00
Alexey Sokolov 2858ab4b26 Add more control codes and comments. 2012-07-05 00:29:30 +07:00
Kyle Fuller a53d997586 Only prepend the timestamps with \0F if they use formatting
This fixes a bug with fish implementation and append timestamps
2012-07-04 16:09:02 +01:00