Commit Graph

2942 Commits

Author SHA1 Message Date
Alexey Sokolov
cc52a7d2be Add several fixed files for swig.
Workaround for broken swig, which allows old swig versions to work too.

These files should be removed when fixed swig is released.

Thanks to Juvenal for suggestion.
2012-08-15 01:42:46 +07:00
Alexey Sokolov
6b550f214d Fix logic of modperl Makefile 2012-08-15 00:39:55 +07:00
Alexey Sokolov
9fd4149d73 Fix modperl and modpython compilation.
Also fix few string-related inconsistences.
2012-08-15 00:38:23 +07:00
Kyle Fuller
e06c3f5e88 Broken merge 2012-08-14 21:49:48 +07:00
Kyle Fuller
8e2de0d497 Merge branch 'conversion' 2012-08-14 19:42:09 +07:00
Kyle Fuller
67299ebfa8 Fix a bunch of conversion warnings #197 2012-08-14 19:31:14 +07:00
Kyle Fuller
e54f423ace Merge pull request #204 from kylef/nick
Send a nick change to clients connecting with a different nick
2012-08-14 05:18:16 -07:00
Alexey Sokolov
7a4aa744fe Don't generate mod[perl|python].tar.bz2 2012-08-13 20:40:05 +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
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
Kyle Fuller
85a3115b8d Send a nick change to clients connecting with a different nick
Before we was hoping that the client was using the nick from 001, not all
clients supported this.

Closes #170
2012-07-28 03:09:08 +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