]> jfr.im git - irc/rizon/znc.git/log
irc/rizon/znc.git
11 years agoCString: Don't repeat ourselves
Kyle Fuller [Sun, 19 Aug 2012 16:06:28 +0000 (23:06 +0700)] 
CString: Don't repeat ourselves

11 years agoFix perms of codegen.pl to be +x
Alexey Sokolov [Sun, 19 Aug 2012 15:13:38 +0000 (22:13 +0700)] 
Fix perms of codegen.pl to be +x

11 years agoFix linkage on cygwin.
Alexey Sokolov [Sun, 19 Aug 2012 09:29:54 +0000 (16:29 +0700)] 
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

11 years agoFix errors on cygwin (more proper fix)
Alexey Sokolov [Sun, 19 Aug 2012 09:14:17 +0000 (16:14 +0700)] 
Fix errors on cygwin (more proper fix)

11 years agoRevert "Fix few errors on cygwin."
Alexey Sokolov [Sun, 19 Aug 2012 09:10:32 +0000 (16:10 +0700)] 
Revert "Fix few errors on cygwin."

This reverts commit b77e69727367afe10998d33abc73d3595b3ec88c.

11 years agoRevert "Fix also Buffer.cpp to use struct timeval"
Alexey Sokolov [Sun, 19 Aug 2012 09:10:28 +0000 (16:10 +0700)] 
Revert "Fix also Buffer.cpp to use struct timeval"

This reverts commit d3840bba19b20ac686e26ade86e63e318d94b9c4.

11 years agoFix also Buffer.cpp to use struct timeval
Alexey Sokolov [Sun, 19 Aug 2012 08:28:39 +0000 (15:28 +0700)] 
Fix also Buffer.cpp to use struct timeval

11 years agoFix few errors on cygwin.
Alexey Sokolov [Sun, 19 Aug 2012 08:25:09 +0000 (15:25 +0700)] 
Fix few errors on cygwin.

I hate timeval...

Thanks to Lizzy Eilson for reporting this.

11 years agoFix #197 and more warnings in ZNCString.cpp
Alexey Sokolov [Sat, 18 Aug 2012 15:40:30 +0000 (22:40 +0700)] 
Fix #197 and more warnings in ZNCString.cpp

11 years agoWe don't need to find the znc binary
Kyle Fuller [Fri, 17 Aug 2012 14:47:31 +0000 (21:47 +0700)] 
We don't need to find the znc binary

11 years agoFix more warnings and #197
Alexey Sokolov [Thu, 16 Aug 2012 17:56:53 +0000 (00:56 +0700)] 
Fix more warnings and #197

11 years agoOh, I forgot to add a back-compatibility crap.
Alexey Sokolov [Thu, 16 Aug 2012 14:29:07 +0000 (21:29 +0700)] 
Oh, I forgot to add a back-compatibility crap.

11 years agoI'm tired of this :(
Alexey Sokolov [Thu, 16 Aug 2012 14:23:02 +0000 (21:23 +0700)] 
I'm tired of this :(

Rename admin module to controlpanel.

11 years agoMake SilverLeo happy :P
Alexey Sokolov [Wed, 15 Aug 2012 14:52:12 +0000 (21:52 +0700)] 
Make SilverLeo happy :P

By displaying info about available and required SWIGs in ./configure

11 years agoFix compilation.
Alexey Sokolov [Wed, 15 Aug 2012 12:39:22 +0000 (19:39 +0700)] 
Fix compilation.

These lines are not needed.

They even fail to compile on some compilers.

Thanks to Han` and fred for reporting this.

11 years agoFix modperl startup.
Alexey Sokolov [Tue, 14 Aug 2012 20:03:55 +0000 (03:03 +0700)] 
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)

11 years agoAdd several fixed files for swig.
Alexey Sokolov [Tue, 14 Aug 2012 18:42:46 +0000 (01:42 +0700)] 
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.

11 years agoFix logic of modperl Makefile
Alexey Sokolov [Tue, 14 Aug 2012 17:39:55 +0000 (00:39 +0700)] 
Fix logic of modperl Makefile

11 years agoFix modperl and modpython compilation.
Alexey Sokolov [Tue, 14 Aug 2012 17:38:23 +0000 (00:38 +0700)] 
Fix modperl and modpython compilation.

Also fix few string-related inconsistences.

11 years agoBroken merge
Kyle Fuller [Tue, 14 Aug 2012 14:49:48 +0000 (21:49 +0700)] 
Broken merge

11 years agoMerge branch 'conversion'
Kyle Fuller [Tue, 14 Aug 2012 12:42:09 +0000 (19:42 +0700)] 
Merge branch 'conversion'

11 years agoFix a bunch of conversion warnings #197
Kyle Fuller [Sun, 12 Aug 2012 22:02:18 +0000 (05:02 +0700)] 
Fix a bunch of conversion warnings #197

11 years agoMerge pull request #204 from kylef/nick
Kyle Fuller [Tue, 14 Aug 2012 12:18:16 +0000 (05:18 -0700)] 
Merge pull request #204 from kylef/nick

Send a nick change to clients connecting with a different nick

11 years agoDon't generate mod[perl|python].tar.bz2
Alexey Sokolov [Mon, 13 Aug 2012 13:40:05 +0000 (20:40 +0700)] 
Don't generate mod[perl|python].tar.bz2

11 years agoImprovements to modpython.
Alexey Sokolov [Mon, 13 Aug 2012 13:01:07 +0000 (20:01 +0700)] 
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>

11 years agoMerge branch 'master' of github.com:znc/znc
Alexey Sokolov [Sun, 12 Aug 2012 15:35:57 +0000 (22:35 +0700)] 
Merge branch 'master' of github.com:znc/znc

11 years agoAdd vector<CListener*> to modperl/modpython.
Alexey Sokolov [Sun, 12 Aug 2012 15:34:02 +0000 (22:34 +0700)] 
Add vector<CListener*> to modperl/modpython.

11 years agoDon't replace our motd with a different servers motd
Kyle Fuller [Sun, 12 Aug 2012 15:22:19 +0000 (22:22 +0700)] 
Don't replace our motd with a different servers motd

Fixes #167

11 years agoroute_replies: Follow rfc1459
Kyle Fuller [Sun, 12 Aug 2012 14:49:08 +0000 (21:49 +0700)] 
route_replies: Follow rfc1459

Closes #190

11 years agoIt was bad idea to set *macEXITER to false inside MODULECALL :(
Alexey Sokolov [Sat, 11 Aug 2012 20:12:42 +0000 (03:12 +0700)] 
It was bad idea to set *macEXITER to false inside MODULECALL :(

There're places where it's initialized to true before calling
MODULECALL.

11 years agoFix #117
Alexey Sokolov [Fri, 10 Aug 2012 12:32:27 +0000 (19:32 +0700)] 
Fix #117

11 years agoDon't show message about missing motd by default.
Alexey Sokolov [Thu, 9 Aug 2012 15:57:28 +0000 (22:57 +0700)] 
Don't show message about missing motd by default.

To enable it, load missingmotd module.
Fix #202

11 years agoUse gettimeofday instead of clock_gettime.
Alexey Sokolov [Wed, 8 Aug 2012 17:37:16 +0000 (00:37 +0700)] 
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 :(

11 years agoFix configure script
Alexey Sokolov [Wed, 8 Aug 2012 16:25:36 +0000 (23:25 +0700)] 
Fix configure script

11 years agoCheck for SWIG's features, not only version.
Alexey Sokolov [Wed, 8 Aug 2012 16:16:57 +0000 (23:16 +0700)] 
Check for SWIG's features, not only version.

11 years agoGenerate modpython.tar.bz2
Alexey Sokolov [Tue, 7 Aug 2012 17:19:39 +0000 (00:19 +0700)] 
Generate modpython.tar.bz2

11 years agoGenerate modperl.tar.bz2
Alexey Sokolov [Tue, 7 Aug 2012 13:34:11 +0000 (20:34 +0700)] 
Generate modperl.tar.bz2

11 years agoUpdate server-time implementation to match new standard. #181
Alexey Sokolov [Sun, 5 Aug 2012 02:45:48 +0000 (09:45 +0700)] 
Update server-time implementation to match new standard. #181

11 years agoFix build.
Alexey Sokolov [Sat, 28 Jul 2012 17:10:52 +0000 (00:10 +0700)] 
Fix build.

Thanks to Vampi for reporting this.

11 years agoFix build.
Alexey Sokolov [Sat, 28 Jul 2012 14:33:08 +0000 (21:33 +0700)] 
Fix build.

Thanks again goes to fred

11 years agoFix build.
Alexey Sokolov [Sat, 28 Jul 2012 14:26:02 +0000 (21:26 +0700)] 
Fix build.

Thanks to fred for reporting this.

11 years agoModperl: read values from MCString #93
Alexey Sokolov [Sat, 28 Jul 2012 13:31:57 +0000 (20:31 +0700)] 
Modperl: read values from MCString #93

Example:
my $x = $self->GetNetwork->GetIRCSock->GetISupport;
$x->get("CHANMODES")

No iterating through all values though :(

11 years agoFix vim modeline for modpython.i
Alexey Sokolov [Sat, 28 Jul 2012 13:27:29 +0000 (20:27 +0700)] 
Fix vim modeline for modpython.i

11 years agoAllow perl modules to be loaded not by modperl
Alexey Sokolov [Sat, 28 Jul 2012 12:35:22 +0000 (19:35 +0700)] 
Allow perl modules to be loaded not by modperl

11 years agochange PutModule to handle multiple lines if need be. fixes #205
Austin Morton [Sat, 28 Jul 2012 06:11:00 +0000 (02:11 -0400)] 
change PutModule to handle multiple lines if need be. fixes #205

11 years agoModpython: support OnLoginAttempt.
Alexey Sokolov [Sat, 28 Jul 2012 04:31:36 +0000 (11:31 +0700)] 
Modpython: support OnLoginAttempt.

So python part of #98 is completed.

11 years agoSend a nick change to clients connecting with a different nick
Kyle Fuller [Fri, 27 Jul 2012 20:09:08 +0000 (03:09 +0700)] 
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

11 years agoMerge branch 'master' of github.com:znc/znc
Alexey Sokolov [Fri, 27 Jul 2012 19:58:21 +0000 (02:58 +0700)] 
Merge branch 'master' of github.com:znc/znc

11 years agoModpython: MCString as a normal dict-like object.
Alexey Sokolov [Fri, 27 Jul 2012 19:56:00 +0000 (02:56 +0700)] 
Modpython: MCString as a normal dict-like object.

See github issue #93

11 years agoSupport OnClientCapLs in modpython #98
Alexey Sokolov [Fri, 27 Jul 2012 18:37:58 +0000 (01:37 +0700)] 
Support OnClientCapLs in modpython #98

11 years agoDon't require CTimer's label to be unique if its empty (Fixes #92)
Kyle Fuller [Thu, 24 Nov 2011 16:45:04 +0000 (16:45 +0000)] 
Don't require CTimer's label to be unique if its empty (Fixes #92)

11 years agoSupport messages directed to specific user prefixes
Kyle Fuller [Fri, 27 Jul 2012 17:07:46 +0000 (00:07 +0700)] 
Support messages directed to specific user prefixes

Closes #195

11 years agoBlock using --enable-swig until SWIG is fixed.
Alexey Sokolov [Fri, 27 Jul 2012 02:23:35 +0000 (09:23 +0700)] 
Block using --enable-swig until SWIG is fixed.

We don't want users to get crashy ZNC, do we?

11 years agoMake description of AddServer a bit more clear.
Alexey Sokolov [Fri, 27 Jul 2012 02:05:42 +0000 (09:05 +0700)] 
Make description of AddServer a bit more clear.

11 years agoSupport OnGetAvailableMods in python. #98
Alexey Sokolov [Thu, 26 Jul 2012 18:02:04 +0000 (01:02 +0700)] 
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/

11 years agoProtect CreatePyModule from CModule*
Alexey Sokolov [Thu, 26 Jul 2012 13:53:17 +0000 (20:53 +0700)] 
Protect CreatePyModule from CModule*

11 years agousing in headers is evil :(
Alexey Sokolov [Thu, 26 Jul 2012 13:46:11 +0000 (20:46 +0700)] 
using in headers is evil :(

11 years agoMake post-installation message a bit more visible.
Alexey Sokolov [Thu, 26 Jul 2012 13:21:49 +0000 (20:21 +0700)] 
Make post-installation message a bit more visible.

11 years agonote dependency on automake for github install
Christian Walde [Tue, 24 Jul 2012 14:46:52 +0000 (17:46 +0300)] 
note dependency on automake for github install

11 years agoShow 410 to client for unknown CAP subcommand.
Alexey Sokolov [Tue, 24 Jul 2012 12:51:53 +0000 (19:51 +0700)] 
Show 410 to client for unknown CAP subcommand.

It's in CAP specs.

11 years agoFix znc-buildmod to work with ld --as-needed. #199
Alexey Sokolov [Mon, 23 Jul 2012 14:31:04 +0000 (21:31 +0700)] 
Fix znc-buildmod to work with ld --as-needed. #199

11 years agoRemove too many spaces from webadmin title="" attributes.
Alexey Sokolov [Sun, 22 Jul 2012 14:26:27 +0000 (21:26 +0700)] 
Remove too many spaces from webadmin title="" attributes.

11 years agoUps, remove unfinished function from modpython for now.
Alexey Sokolov [Sun, 22 Jul 2012 14:25:25 +0000 (21:25 +0700)] 
Ups, remove unfinished function from modpython for now.

See #98

11 years agoProgress on modpython global hooks.
Alexey Sokolov [Sun, 22 Jul 2012 11:21:58 +0000 (18:21 +0700)] 
Progress on modpython global hooks.

OnModuleLoading, OnModuleUnloading, OnGetModInfo work fine.
Need to add: OnClientCapLs, OnGetAvailableMods, OnLoginAttempt

See #98

11 years agoIgnore fail of git-describe differently.
Alexey Sokolov [Sun, 22 Jul 2012 10:34:05 +0000 (17:34 +0700)] 
Ignore fail of git-describe differently.

Now it doesn't show an error message and still continues.

Thanks to Han` for reporting this.

11 years agoShow commit id in version for git builds.
Alexey Sokolov [Fri, 20 Jul 2012 15:34:53 +0000 (22:34 +0700)] 
Show commit id in version for git builds.

11 years agoFix a warning in Csocket.cpp.
Alexey Sokolov [Sat, 21 Jul 2012 16:27:03 +0000 (23:27 +0700)] 
Fix a warning in Csocket.cpp.

The patch was sent upstream too.

11 years agoAdd network selector to send_raw's web page.
Alexey Sokolov [Fri, 20 Jul 2012 15:36:13 +0000 (22:36 +0700)] 
Add network selector to send_raw's web page.

11 years agoAdd ShowBindHost command.
Alexey Sokolov [Wed, 18 Jul 2012 18:08:16 +0000 (01:08 +0700)] 
Add ShowBindHost command.

11 years agoFix webadmin to deny setting bindhost not from list.
Alexey Sokolov [Wed, 18 Jul 2012 17:54:36 +0000 (00:54 +0700)] 
Fix webadmin to deny setting bindhost not from list.

11 years agoPer-network bind hosts.
Alexey Sokolov [Wed, 18 Jul 2012 17:35:07 +0000 (00:35 +0700)] 
Per-network bind hosts.

Fix #147

11 years agoUse loadmod --type=type syntax for modules.
Alexey Sokolov [Wed, 18 Jul 2012 15:15:51 +0000 (22:15 +0700)] 
Use loadmod --type=type syntax for modules.

See github issue #171

11 years agoFix presense and help of module arguments.
Alexey Sokolov [Tue, 17 Jul 2012 02:14:02 +0000 (09:14 +0700)] 
Fix presense and help of module arguments.

See github issue #192

11 years agoDon't try and unload ourself, we can't do this
Kyle Fuller [Mon, 16 Jul 2012 23:42:18 +0000 (00:42 +0100)] 
Don't try and unload ourself, we can't do this

Closes #194

11 years agoDrop znc-config, change znc-buildmod so it doesn't need znc-config
Kyle Fuller [Wed, 4 Jul 2012 21:21:37 +0000 (22:21 +0100)] 
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.

11 years agoAdd more control codes and comments.
Alexey Sokolov [Wed, 4 Jul 2012 17:29:30 +0000 (00:29 +0700)] 
Add more control codes and comments.

11 years agoOnly prepend the timestamps with \0F if they use formatting
Kyle Fuller [Wed, 4 Jul 2012 15:08:25 +0000 (16:08 +0100)] 
Only prepend the timestamps with \0F if they use formatting

This fixes a bug with fish implementation and append timestamps

11 years agoroute_replies: MAP can result in ERR_NOPRIVILEGES, WHOWAS can contain ERR_WASNOSUCHNICK
Kyle Fuller [Wed, 4 Jul 2012 14:06:32 +0000 (15:06 +0100)] 
route_replies: MAP can result in ERR_NOPRIVILEGES, WHOWAS can contain ERR_WASNOSUCHNICK

11 years agoAdd flood protection settings to *admin
Kyle Fuller [Wed, 4 Jul 2012 02:37:53 +0000 (03:37 +0100)] 
Add flood protection settings to *admin

Closes #158

11 years ago*admin: Add {Get,Set}Network command
Kyle Fuller [Wed, 4 Jul 2012 02:30:00 +0000 (03:30 +0100)] 
*admin: Add {Get,Set}Network command

11 years agoDETACH: Don't show `Detached from <channel>`
Kyle Fuller [Wed, 4 Jul 2012 01:21:31 +0000 (02:21 +0100)] 
DETACH: Don't show `Detached from <channel>`

11 years agoMerge branch 'master' of github.com:znc/znc
Alexey Sokolov [Mon, 2 Jul 2012 06:20:51 +0000 (13:20 +0700)] 
Merge branch 'master' of github.com:znc/znc

11 years agoRearrange messages to user during installation.
Alexey Sokolov [Mon, 2 Jul 2012 06:19:00 +0000 (13:19 +0700)] 
Rearrange messages to user during installation.

To make installation process more like step-by-step guide.

11 years agoDon't send our password required notice until after CAP negotiation
Kyle Fuller [Thu, 28 Jun 2012 20:15:12 +0000 (21:15 +0100)] 
Don't send our password required notice until after CAP negotiation

11 years agobNoChange in On{,De}{Op,Voice} wast incorrect
Kyle Fuller [Thu, 28 Jun 2012 20:00:37 +0000 (21:00 +0100)] 
bNoChange in On{,De}{Op,Voice} wast incorrect

Fixes #128

11 years agoMerge branch 'master' of github.com:znc/znc
Alexey Sokolov [Thu, 28 Jun 2012 12:00:24 +0000 (19:00 +0700)] 
Merge branch 'master' of github.com:znc/znc

11 years agoLoad cyrusauth for old configs instead of saslauth.
Alexey Sokolov [Thu, 28 Jun 2012 11:59:31 +0000 (18:59 +0700)] 
Load cyrusauth for old configs instead of saslauth.

11 years agowatch module: Don't handle multiple matching patterns for each target
Roland Hieber [Wed, 27 Jun 2012 14:15:51 +0000 (16:15 +0200)] 
watch module: Don't handle multiple matching patterns for each target

Keep track of the targets which have already been notified of a matching
message, and do not notify them again if other patterns in the same
message match also. For example, consider the following match patterns:

  1) <*watch> /msg *watch ADD *!*@* *highlight *%nick%*
  2) <*watch> /msg *watch ADD *!*@* *highlight *testuser*
  3) <*watch> /msg *watch ADD *!*@* *testhilights *test*

If %nick% ist something like "testuser123", all of the these patterns
match the following message:

  <otheruser> hey testuser123, look at this: ...

Without this patch, the watch module would generate two notify messages
for target *highlight, and one notify message for target *testhilights.
This is unneccessary because patterns 1 and 2 will result in
generating the same notify message twice for target *highlight.

By using a std::set, the implementation in this patch keeps track of
which targets have already been notified and does not notify them more
than once.

11 years agoDon't show Buffer playback/complete messages with server-time
Kyle Fuller [Sun, 24 Jun 2012 20:25:41 +0000 (21:25 +0100)] 
Don't show Buffer playback/complete messages with server-time

11 years agosaslauth -> cyrusauth
Alexey Sokolov [Thu, 21 Jun 2012 01:02:08 +0000 (08:02 +0700)] 
saslauth -> cyrusauth

11 years agoRename --enable-sasl to --enable-cyrus to help confusion
Kyle Fuller [Mon, 18 Jun 2012 03:51:58 +0000 (04:51 +0100)] 
Rename --enable-sasl to --enable-cyrus to help confusion

Many people think --enable-sasl was needed for the sasl module

12 years agoFix help text for modtcl's argument.
Alexey Sokolov [Sat, 16 Jun 2012 09:39:19 +0000 (16:39 +0700)] 
Fix help text for modtcl's argument.

12 years agoFix: Log module accepts arguments.
Alexey Sokolov [Sat, 16 Jun 2012 09:35:05 +0000 (16:35 +0700)] 
Fix: Log module accepts arguments.

Thanks to tm512 for reporting that webadmin doesn't know that.

12 years agoWarn about SIGHUP in man page.
Alexey Sokolov [Mon, 11 Jun 2012 02:03:40 +0000 (09:03 +0700)] 
Warn about SIGHUP in man page.

12 years agoUse standard HTML table elements instead of custom classes
Kyle Fuller [Fri, 8 Jun 2012 12:51:45 +0000 (13:51 +0100)] 
Use standard HTML table elements instead of custom classes

Fixes #169

12 years agoMerge branch 'master' of github.com:znc/znc
Alexey Sokolov [Tue, 5 Jun 2012 15:33:44 +0000 (22:33 +0700)] 
Merge branch 'master' of github.com:znc/znc

12 years agoMake user Buffer setting a bit less confusing.
Alexey Sokolov [Tue, 5 Jun 2012 15:32:19 +0000 (22:32 +0700)] 
Make user Buffer setting a bit less confusing.

12 years agoFix the tests.
Wulf C. Krueger [Sat, 2 Jun 2012 17:28:55 +0000 (19:28 +0200)] 
Fix the tests.

Due to the restructure directory layout, header files weren't found
anymore.

CConfigEntry was moved out of CConfig which had to be reflected in
ConfigTest.

12 years agoAdd support for --with-systemdsystemunitdir.
Wulf C. Krueger [Sat, 2 Jun 2012 17:57:42 +0000 (19:57 +0200)] 
Add support for --with-systemdsystemunitdir.

--with-systemdsystemunitdir is the usual way to configure the directory
to which any systemd service file gets installed.

12 years agoznc.service: Improve description, don't fork on your own
Wulf C. Krueger [Thu, 24 May 2012 21:41:47 +0000 (23:41 +0200)] 
znc.service: Improve description, don't fork on your own

The description gets displayed when the service is started and would
output something like "Starting An advanced IRC bouncer". There's
potentially more than one, though, and, thus, the name should at least
be included.

Type=forking should be used as a last resort only. systemd does the
forking itself and, thus, ZNC should be started with the -f switch.