Commit Graph

1117 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
67299ebfa8 Fix a bunch of conversion warnings #197 2012-08-14 19:31:14 +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
f8dc7d5cd5 route_replies: Follow rfc1459
Closes #190
2012-08-12 21:49:08 +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
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
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
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
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
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
a131127770 Show commit id in version for git builds. 2012-07-21 23:27:53 +07:00
Alexey Sokolov
165c9ed082 Add network selector to send_raw's web page. 2012-07-20 22:36:13 +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
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
d1e4550663 route_replies: MAP can result in ERR_NOPRIVILEGES, WHOWAS can contain ERR_WASNOSUCHNICK 2012-07-04 15:07:13 +01:00
Kyle Fuller
114fabfebe Add flood protection settings to *admin
Closes #158
2012-07-04 03:42:57 +01:00
Kyle Fuller
619436736b *admin: Add {Get,Set}Network command 2012-07-04 03:30:00 +01:00
Alexey Sokolov
76e1d417f7 saslauth -> cyrusauth 2012-06-21 08:02:08 +07:00
Kyle Fuller
63ab3c099d Rename --enable-sasl to --enable-cyrus to help confusion
Many people think --enable-sasl was needed for the sasl module
2012-06-18 04:51:58 +01:00
Alexey Sokolov
674d2139dc Fix help text for modtcl's argument. 2012-06-16 16:39:19 +07:00
Alexey Sokolov
601b9a4cc6 Fix: Log module accepts arguments.
Thanks to tm512 for reporting that webadmin doesn't know that.
2012-06-16 16:35:05 +07:00
Kyle Fuller
eb59be7905 Use standard HTML table elements instead of custom classes
Fixes #169
2012-06-08 13:51:45 +01:00
Alexey Sokolov
2d884ad7c3 Make user Buffer setting a bit less confusing. 2012-06-05 22:32:19 +07:00
Torsten Landschoff
4ca8b50e45 Fix building modpython with swig #174 2012-05-30 09:49:42 +01:00
Kyle Fuller
cab14055de Merge the sasl module from znc-contrib 2012-05-20 23:47:46 +01:00
Kyle Fuller
a2f0f8dcdb saslauth: Fix an incompatibility with older versions of GCC
Reported by KindOne
2012-05-16 19:43:03 +01:00
Kyle Fuller
faf503712e saslauth: Allow creating new users on first login 2012-05-14 19:04:45 +01:00
Kyle Fuller
2a4940f23e saslauth: Cleanup module, don't refuse logins if we can't provide them 2012-05-14 19:04:45 +01:00
Alexey Sokolov
27f42d1118 Rename (non-) KeepBuffer to AutoClearChanBuffer.
It should be a less confusing name...
2012-05-09 22:32:12 +07:00
Alexey Sokolov
5fbf528a49 Fix Save button of global settings in webadmin.
In HTML one <form> can't be inside another one...
In XHTML it works...

Thanks to skydrome for reporting this.

Also I tried to fix listeners editor, as they used nested forms too...
But it seems that I messed up the whole table.

Let someone more skilled in HTML fix this broken layout.

At least buttons themselves work now.
2012-04-20 10:48:26 +07:00