Commit Graph

4514 Commits

Author SHA1 Message Date
Kyle Fuller 3347390cfc CString: Don't repeat ourselves 2012-08-19 23:06:28 +07:00
Alexey Sokolov 502e5d6ace Fix perms of codegen.pl to be +x 2012-08-19 22:13:38 +07:00
Alexey Sokolov da336049b3 Fix linkage on cygwin.
ZNC_NO_NEED_TO_DO_ANYTHING_ON_MODULE_CALL_EXITER is required in
libznc.dll, but it was defined in main.cpp

Again thanks to Lizzy Eilson
2012-08-19 16:30:47 +07:00
Alexey Sokolov 39ba5f28ea Fix errors on cygwin (more proper fix) 2012-08-19 16:14:17 +07:00
Alexey Sokolov c06db11513 Revert "Fix few errors on cygwin."
This reverts commit b77e697273.
2012-08-19 16:10:32 +07:00
Alexey Sokolov 6851242a5d Revert "Fix also Buffer.cpp to use struct timeval"
This reverts commit d3840bba19.
2012-08-19 16:10:28 +07:00
Alexey Sokolov d3840bba19 Fix also Buffer.cpp to use struct timeval 2012-08-19 15:28:39 +07:00
Alexey Sokolov b77e697273 Fix few errors on cygwin.
I hate timeval...

Thanks to Lizzy Eilson for reporting this.
2012-08-19 15:25:09 +07:00
Alexey Sokolov b2fa3a7f61 Fix #197 and more warnings in ZNCString.cpp 2012-08-18 22:40:30 +07:00
Kyle Fuller 4059c5666f We don't need to find the znc binary 2012-08-17 21:47:31 +07:00
Alexey Sokolov 892727ba2c Fix more warnings and #197 2012-08-17 01:16:34 +07:00
Alexey Sokolov 395ae4fc9f Oh, I forgot to add a back-compatibility crap. 2012-08-16 21:29:07 +07:00
Alexey Sokolov 691785fcb4 I'm tired of this :(
Rename admin module to controlpanel.
2012-08-16 21:24:03 +07:00
Alexey Sokolov 16f510f820 Make SilverLeo happy :P
By displaying info about available and required SWIGs in ./configure
2012-08-15 21:52:12 +07:00
Alexey Sokolov a4d99e2726 Fix compilation.
These lines are not needed.

They even fail to compile on some compilers.

Thanks to Han` and fred for reporting this.
2012-08-15 19:39:22 +07:00
Alexey Sokolov a6716486c9 Fix modperl startup.
User.h and Utils.h should not depend on each other, and instead of name
of default method need to have a function in CUtils, which hashes using
default method (such function is in CUser now)
2012-08-15 03:03:55 +07:00
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
Austin Morton be76679065 change PutModule to handle multiple lines if need be. fixes #205 2012-07-28 02:11:00 -04: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