]> jfr.im git - irc/rizon/znc.git/log
irc/rizon/znc.git
12 years agoIncrease the version number to 0.200 znc-0.200
Uli Schlachter [Sat, 20 Aug 2011 20:33:15 +0000 (22:33 +0200)] 
Increase the version number to 0.200

Signed-off-by: Uli Schlachter <redacted>
12 years ago[cert module] Allow \r\n to be inside a certificate when uploading with the web inter...
Kyle Fuller [Tue, 16 Aug 2011 21:19:43 +0000 (22:19 +0100)] 
[cert module] Allow \r\n to be inside a certificate when uploading with the web interface.

Thanks to Robby for reporting

12 years agoFix uploading a certificate in the web interface for the cert module
Kyle Fuller [Tue, 16 Aug 2011 19:36:32 +0000 (20:36 +0100)] 
Fix uploading a certificate in the web interface for the cert module

12 years agoFix modp{erl,ython} installation
Uli Schlachter [Sat, 6 Aug 2011 08:43:39 +0000 (10:43 +0200)] 
Fix modp{erl,ython} installation

Signed-off-by: Uli Schlachter <redacted>
12 years agoFix module data for extra/ modules for real
Kyle Fuller [Fri, 5 Aug 2011 21:16:21 +0000 (22:16 +0100)] 
Fix module data for extra/ modules for real

12 years agoFix CString::Escape_n() and add some tests for it
Uli Schlachter [Fri, 5 Aug 2011 14:05:05 +0000 (16:05 +0200)] 
Fix CString::Escape_n() and add some tests for it

This bug was originally reported by someone on irc, but sadly I forgot who it
was. Sorry!

Signed-off-by: Uli Schlachter <redacted>
12 years agoFix module data for extra/ modules
Uli Schlachter [Fri, 5 Aug 2011 13:19:09 +0000 (15:19 +0200)] 
Fix module data for extra/ modules

No module in extra/ comes with any data currently, so this was tested by moving
perform to extra/. The install is untested.

Signed-off-by: Uli Schlachter <redacted>
12 years agoInclude zncconfig.h in all headers
Uli Schlachter [Fri, 5 Aug 2011 13:02:04 +0000 (15:02 +0200)] 
Include zncconfig.h in all headers

The rule is that zncconfig.h must be the very same thing that is included. We
cheat and only include it in headers (so that modules dont have to have be
changed). However, it looks like some modules where missed.

This commit fixes test/ConfigTest which crashed if _GLIBCXX_DEBUG was enabled
(--enable-debug) because it didn't see this define before including a c++
header.

Signed-off-by: Uli Schlachter <redacted>
12 years agoStop asking for the host name in --makepem
Uli Schlachter [Wed, 3 Aug 2011 20:05:21 +0000 (22:05 +0200)] 
Stop asking for the host name in --makepem

Come on, it's a self-signed certificate, how much value does it have anyway?
Also, it gets rid of a question during --makeconf which confuses some people.

This should now use $HOSTNAME and fall back to "host.unknown" if that isn't set.

Signed-off-by: Uli Schlachter <redacted>
12 years agoMake the CUser::IsIRCConnected method check if the IRC connection is authed because...
Kyle Fuller [Fri, 29 Jul 2011 18:21:25 +0000 (19:21 +0100)] 
Make the CUser::IsIRCConnected method check if the IRC connection is authed because may of its callers expect this behaviour.

This fixes a bug reported by Robby where a channel could become disabled while a the user is connected to irc, but before they have authenticated.

12 years agoFix a memleak in CChan::AddNick()
Uli Schlachter [Wed, 27 Jul 2011 13:14:01 +0000 (15:14 +0200)] 
Fix a memleak in CChan::AddNick()

This memleak existed since 5e070e788 from almost a year ago.

Thanks to Olipro for reporting this.

Signed-off-by: Uli Schlachter <redacted>
12 years agoDon't send a MODE request when JOINing
Uli Schlachter [Wed, 27 Jul 2011 13:05:40 +0000 (15:05 +0200)] 
Don't send a MODE request when JOINing

Since commit 1a1cc4c756e, we'd always send a "MODE #chan" to IRC when we
received a "JOIN #chan". It used to work before that commit, because the mode
reply which is automatically sent on join is sent before the "end of /names"
numeric.

This just removes that MODE request. Proper IRC server should always send a MODE
reply on channel join.

Thanks to nyuszika7h`` for the report.

Signed-off-by: Uli Schlachter <redacted>
12 years agoBroadcast an error on EMFILE
Uli Schlachter [Mon, 25 Jul 2011 14:58:11 +0000 (16:58 +0200)] 
Broadcast an error on EMFILE

When we hit the "maximum open files" limit, we close the listener that hit this
error. Previously we did so silently which means no one could figure out what
happened.

This commits adds a broadcast message giving a hint, but this should never
happen in a real-world situation anyway (unless you have 1000 users).

Signed-off-by: Uli Schlachter <redacted>
12 years agoFix verifying listener in --makeconf.
Alexey Sokolov [Tue, 19 Jul 2011 01:48:57 +0000 (08:48 +0700)] 
Fix verifying listener in --makeconf.

If ZNC is compiled with IPv6, ZNC tried to verify the listener using
IPv6 regardless of what user said.

Thanks to wodim for reporting this.

12 years agoHide every symbol except ZNCModInfo from modules.
Alexey Sokolov [Fri, 15 Jul 2011 15:56:47 +0000 (22:56 +0700)] 
Hide every symbol except ZNCModInfo from modules.

This means that now it's possible to have the same class names in
different modules, which reduces chances of weird errors.

Thanks to mclc for noticing this.

12 years agoFix znc-buildmod if znc was compiled out of tree.
Alexey Sokolov [Fri, 15 Jul 2011 14:41:53 +0000 (21:41 +0700)] 
Fix znc-buildmod if znc was compiled out of tree.

12 years agoUpdate to latest Csocket
Uli Schlachter [Wed, 13 Jul 2011 18:47:56 +0000 (20:47 +0200)] 
Update to latest Csocket

This fixes the "busy loop waiting for an SSL handshake to finish" which the last
"Update to latest Csocket" was already supposed to fix. However, that fix had a
bug if poll() is used instead of select().

poll()'s timeout argument is in milliseconds while select also allows
microseconds. Since Csocket originally used select(), it expects the
microseconds-approach. This means it has to divide by 1000 to get the timeout
argument for poll().

However, the iQuickReset which was used to "fix" (rather: hide) the busy loop
was less than 1ms so this still resulted in a timeout of 0 (= busy loop) because
integer division truncates the result.

Signed-off-by: Uli Schlachter <redacted>
12 years agoWebMods: Set another cookie if the IP check fails
Uli Schlachter [Wed, 13 Jul 2011 18:40:55 +0000 (20:40 +0200)] 
WebMods: Set another cookie if the IP check fails

This means that they will get a new cookie on the next request. This will make
sure that you will be able to use webadmin again if your IP changed (which seems
to happen to quite a number of people).

Signed-off-by: Uli Schlachter <redacted>
12 years agoznc-buildmod: Print znc's version number
Uli Schlachter [Wed, 13 Jul 2011 17:54:35 +0000 (19:54 +0200)] 
znc-buildmod: Print znc's version number

This helps people figuring out that they are still building their modules for
the wrong znc version since they have more than one installation on their box.

Signed-off-by: Uli Schlachter <redacted>
12 years agoDon't fail to load if can't find fixfreenode.
Alexey Sokolov [Sun, 10 Jul 2011 12:46:34 +0000 (19:46 +0700)] 
Don't fail to load if can't find fixfreenode.

12 years agoRemove fixfreenode module.
Alexey Sokolov [Tue, 5 Jul 2011 17:52:18 +0000 (00:52 +0700)] 
Remove fixfreenode module.

Old CAPAB method doesn't work with freenode now, and new CAP method is
handled by CAP support in the core.

12 years agoUpdate to latest Csocket
Uli Schlachter [Sun, 26 Jun 2011 10:11:40 +0000 (12:11 +0200)] 
Update to latest Csocket

Fixes:

- A possible crash bug for empty DNS replies with c-ares. E.g. a AAAA lookup for
  google.com doesn't give any reply but is still successful. This might be a
  c-ares bug (there is ARES_ENODATA) or c-ares just changed its behavior?
  (No bug report, just noticed accidentally)
- Connecting to ipv4-only hosts with a v6 bindhost caused weird errors:
  https://github.com/znc/znc/issues/47
- There was a pull request for some DSA server certificate thingy:
  https://github.com/znc/znc/pull/46
- Busy loop waiting for an SSL handshake to finish:
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631590
- Some other stuff? No idea what some of the changes in here are actually doing.

Signed-off-by: Uli Schlachter <redacted>
12 years agoFix a bug in MCString::Encode()
Uli Schlachter [Mon, 13 Jun 2011 13:19:17 +0000 (15:19 +0200)] 
Fix a bug in MCString::Encode()

For character values above 127, the signed char that could be used here did the
wrong thing. That is, *it >> 4 returned a negative value and the array hexdigits
was read indexed with that wrong value.

Fix this by explicitly using unsigned char.

Thanks to crocket for reporting this bug which he found with perform (broken
entries after a restart/reload).

Signed-off-by: Uli Schlachter <redacted>
12 years agoOnly export a single function from modules
Uli Schlachter [Sat, 11 Jun 2011 16:33:50 +0000 (18:33 +0200)] 
Only export a single function from modules

This moves the version check into the function which loads the module info. That
way, we just need a single dlsym() call per module and thus can't get any errors
from the second dlsym() call. And IMHO this feels nicer anyway. ;-)

Signed-off-by: Uli Schlachter <redacted>
12 years agoUse references instead of pointers for CModInfo
Uli Schlachter [Sat, 11 Jun 2011 16:16:00 +0000 (18:16 +0200)] 
Use references instead of pointers for CModInfo

This works fine and reduces the chances of memory leaks.

Signed-off-by: Uli Schlachter <redacted>
12 years agoMerge branch 'modinfo'
Alexey Sokolov [Sat, 11 Jun 2011 11:32:09 +0000 (18:32 +0700)] 
Merge branch 'modinfo'

12 years agoSupport wiki pages names in python modules.
Alexey Sokolov [Sat, 11 Jun 2011 11:27:13 +0000 (18:27 +0700)] 
Support wiki pages names in python modules.

Also this fixes showing python modules in available modules list.

12 years agoSupport wiki pages names for perl modules.
Alexey Sokolov [Sat, 11 Jun 2011 11:21:06 +0000 (18:21 +0700)] 
Support wiki pages names for perl modules.

12 years agoAdd link to wiki page from any nonextra module.
Alexey Sokolov [Sat, 11 Jun 2011 11:09:56 +0000 (18:09 +0700)] 
Add link to wiki page from any nonextra module.

12 years agoModules can now provide its wiki page name.
Alexey Sokolov [Sat, 11 Jun 2011 10:46:37 +0000 (17:46 +0700)] 
Modules can now provide its wiki page name.

It's shown on webadmin as a link.

12 years agoAdd a way for module to customize additional info.
Alexey Sokolov [Sat, 11 Jun 2011 10:28:15 +0000 (17:28 +0700)] 
Add a way for module to customize additional info.

For that you need to write a specialization of template function
void TModInfo<CYourModule>(CModInfo&), and inside it put needed values
to the argument.

12 years agoChange a way for modules to provide description.
Alexey Sokolov [Sat, 11 Jun 2011 10:19:36 +0000 (17:19 +0700)] 
Change a way for modules to provide description.

Now there're only 2 functions which modules export:
ZNCModVersion() and ZNCModInfo().

ZNCModInfo() returns CModInfo instance, which contains
description, globality, function for loading the module. It needs to be
deleted afterwise.

12 years agoCheck the for our minimum required autoconf version
Uli Schlachter [Fri, 10 Jun 2011 14:39:51 +0000 (16:39 +0200)] 
Check the for our minimum required autoconf version

Signed-off-by: Uli Schlachter <redacted>
12 years agoMerge pull request #55 from Un1matr1x/bugfix/white_space_edition
Uli Schlachter [Thu, 9 Jun 2011 19:38:59 +0000 (12:38 -0700)] 
Merge pull request #55 from Un1matr1x/bugfix/white_space_edition

remove evil trailing white space

12 years agoremove some more of the evil trailing white spaces & tabs
Un1matr1x [Thu, 9 Jun 2011 19:29:13 +0000 (21:29 +0200)] 
remove some more of the evil trailing white spaces & tabs

12 years agoMerge branch 'master' of git://github.com/znc/znc into white_space_edition
Un1matr1x [Thu, 9 Jun 2011 19:00:33 +0000 (21:00 +0200)] 
Merge branch 'master' of git://github.com/znc/znc into white_space_edition

12 years agoSupport compiling python modules in cwd
Alexey Sokolov [Wed, 8 Jun 2011 02:53:42 +0000 (09:53 +0700)] 
Support compiling python modules in cwd

12 years agotabs in newlines could be removedĀ²
Un1matr1x [Wed, 8 Jun 2011 04:51:13 +0000 (06:51 +0200)] 
tabs in newlines could be removedĀ²

12 years agoMerge branch 'master' of git://github.com/znc/znc into bugfix/white_space_edition
Un1matr1x [Wed, 8 Jun 2011 04:47:46 +0000 (06:47 +0200)] 
Merge branch 'master' of git://github.com/znc/znc into bugfix/white_space_edition

12 years agoCUser: remove some non-existant methods from the headers
Kyle Fuller [Wed, 8 Jun 2011 03:04:08 +0000 (04:04 +0100)] 
CUser: remove some non-existant methods from the headers

These include:

- SendFile
- GetFile
- ResumeFile

Which were removed when DCC was moved out of the core

12 years agoRedo commands for send_raw modules. Also, use the new CModCommand stuff.
Brian [Wed, 2 Mar 2011 03:31:35 +0000 (20:31 -0700)] 
Redo commands for send_raw modules. Also, use the new CModCommand stuff.

12 years agoremove evil trailing white space
Un1matr1x [Tue, 7 Jun 2011 19:39:25 +0000 (21:39 +0200)] 
remove evil trailing white space

12 years agoMerge pull request #50 from bpcampbe/TrimBuffer
Uli Schlachter [Tue, 7 Jun 2011 16:23:05 +0000 (09:23 -0700)] 
Merge pull request #50 from bpcampbe/TrimBuffer

Add CChan::TrimBuffer and have SetBufferCount call it.

12 years agoImprove the debug messages from identfile module
Kyle Fuller [Sat, 4 Jun 2011 16:00:10 +0000 (17:00 +0100)] 
Improve the debug messages from identfile module

12 years agoCheck what make should user use and ask user to do that.
Alexey Sokolov [Sat, 4 Jun 2011 07:19:54 +0000 (14:19 +0700)] 
Check what make should user use and ask user to do that.

12 years agoAdd regex comment for CUser::IsValidUserName()
Alexey Sokolov [Thu, 2 Jun 2011 01:10:46 +0000 (08:10 +0700)] 
Add regex comment for CUser::IsValidUserName()

12 years agoDo not include DCCSock in mod(perl|python)
Kyle Fuller [Wed, 1 Jun 2011 21:11:58 +0000 (22:11 +0100)] 
Do not include DCCSock in mod(perl|python)

12 years agoMake schat use DCCBindHost
Kyle Fuller [Sun, 29 May 2011 20:23:15 +0000 (21:23 +0100)] 
Make schat use DCCBindHost

12 years agoUse the module save path for dcc's, and remove DLPath since it is no longer used.
Kyle Fuller [Tue, 31 May 2011 00:39:19 +0000 (01:39 +0100)] 
Use the module save path for dcc's, and remove DLPath since it is no longer used.

12 years agoMove dcc file transfers to their own module
Kyle Fuller [Mon, 30 May 2011 21:24:40 +0000 (22:24 +0100)] 
Move dcc file transfers to their own module

12 years agoMigrate dcc bouncing to its own module
Kyle Fuller [Sat, 2 Apr 2011 21:50:24 +0000 (22:50 +0100)] 
Migrate dcc bouncing to its own module

12 years agoRemove OnDCCUserSend module hook
Kyle Fuller [Sat, 2 Apr 2011 19:58:38 +0000 (20:58 +0100)] 
Remove OnDCCUserSend module hook

12 years agoRename "str" to "String" in the admin panel.
Kyle Fuller [Tue, 31 May 2011 01:00:23 +0000 (02:00 +0100)] 
Rename "str" to "String" in the admin panel.

This was accidentally renamed in abed808121fb96f70d7c.

12 years agoAdd CChan::TrimBuffer and have SetBufferCount call it.
Brian [Mon, 30 May 2011 00:37:05 +0000 (18:37 -0600)] 
Add CChan::TrimBuffer and have SetBufferCount call it.

12 years agoAdd a web interface to the certauth module
Kyle Fuller [Wed, 25 May 2011 12:24:14 +0000 (13:24 +0100)] 
Add a web interface to the certauth module

12 years agoMake certauth accept a optional argument of the key when you add a key
Kyle Fuller [Tue, 24 May 2011 16:52:09 +0000 (17:52 +0100)] 
Make certauth accept a optional argument of the key when you add a key

12 years agoMake certauth use the CModCommand API
Kyle Fuller [Tue, 24 May 2011 12:14:41 +0000 (13:14 +0100)] 
Make certauth use the CModCommand API

12 years agoRename a variable from 'string' to 'str' because 'string' shadows a global declaration
Kyle Fuller [Wed, 25 May 2011 15:46:53 +0000 (16:46 +0100)] 
Rename a variable from 'string' to 'str' because 'string' shadows a global declaration

13 years agoMerge branch 'master' of https://github.com/pfn/znc
Uli Schlachter [Sat, 21 May 2011 11:58:29 +0000 (13:58 +0200)] 
Merge branch 'master' of https://github.com/pfn/znc

Conflicts:
modules/extra/away.cpp

Signed-off-by: Uli Schlachter <redacted>
13 years agoautoattach: Allow limiting by hostmask
Uli Schlachter [Sun, 15 May 2011 11:15:51 +0000 (13:15 +0200)] 
autoattach: Allow limiting by hostmask

This adds hostmasks to autoattach. E.g. if you don't like me, you add an entry
of "! * psychon!*" and autoattach won't attach you to channels just because I
said something. The same can be done in the non-negated case, "only attach when
foo says something".

Signed-off-by: Uli Schlachter <redacted>
13 years agoCorrectly handle excessive web sessions
Uli Schlachter [Fri, 13 May 2011 16:19:08 +0000 (18:19 +0200)] 
Correctly handle excessive web sessions

The old code didn't actually destroy the session, but only made sure we couldn't
use it anymore. What a waste of memory.

This was tested by adding a DEBUG()-call to CWebSock::~CWebSock():

Before this patch:

 Page Request [/]
 Remote IP:   127.0.0.1; discarding session [ca104adaa54f933b6b8394e88e68ab0d22e0fc227ed23e93d1421e4d3fda8211]
 Auto generated session: [d40364e8d0a55432b86a1b2598865c2323e35cc6e77cade35b9a1b7605712ca6]

After this patch:

 Page Request [/]
 Remote IP:   127.0.0.1; discarding session [707e3b262fe47b93d8c796354574506c398cc5b5d84aa2972dc3d031d8f731f5]
 Destroying session [707e3b262fe47b93d8c796354574506c398cc5b5d84aa2972dc3d031d8f731f5, 127.0.0.1 for <unknown>
 Auto generated session: [47de1c82a8b6eaae54a9cc8c29163ab53ec2add7198cf1df7f80506ea1bda2b6]

Obviously, the destructor is only called after this change.

Signed-off-by: Uli Schlachter <redacted>
13 years agoSet errno in CListener::Listen()
Uli Schlachter [Fri, 13 May 2011 15:24:10 +0000 (17:24 +0200)] 
Set errno in CListener::Listen()

CSocket doesn't necessarily set errno, but the callers of Listen() assume an
error message in errno.

Signed-off-by: Uli Schlachter <redacted>
13 years agoMake it possible to use ExpandString-stuff in QuitMsg
Uli Schlachter [Fri, 13 May 2011 14:40:40 +0000 (16:40 +0200)] 
Make it possible to use ExpandString-stuff in QuitMsg

You can now use "Uptime: %uptime%" as your quit message, yay!

Signed-off-by: Uli Schlachter <redacted>
13 years agoWarn if a *module message is ignored
Uli Schlachter [Fri, 13 May 2011 13:48:47 +0000 (15:48 +0200)] 
Warn if a *module message is ignored

Some modules (e.g. webadmin) don't handle messages to *module in any way. Make
it clear to the user why they didn't get any reply back in this case.

Signed-off-by: Uli Schlachter <redacted>
13 years agoWebModules: Add some more debug output
Uli Schlachter [Sun, 8 May 2011 20:19:51 +0000 (22:19 +0200)] 
WebModules: Add some more debug output

This now prints more info in case of errors which might help figure out bugs.

Signed-off-by: Uli Schlachter <redacted>
13 years agoAdd bootstrap.sh as symlink to autogen.sh
Alexey Sokolov [Sun, 8 May 2011 08:14:13 +0000 (15:14 +0700)] 
Add bootstrap.sh as symlink to autogen.sh

Some projects use name autogen, and some use bootstrap. Meh.

13 years agoCheck SWIG version in configure.
Alexey Sokolov [Fri, 6 May 2011 08:17:30 +0000 (15:17 +0700)] 
Check SWIG version in configure.

13 years agoSome fixes for README.md
Uli Schlachter [Sun, 1 May 2011 09:53:37 +0000 (11:53 +0200)] 
Some fixes for README.md

This fixes some broken markup and adds modpython

Signed-off-by: Uli Schlachter <redacted>
13 years agoMerge pull request #42 from Un1matr1x/change/readme.
Uli Schlachter [Sun, 1 May 2011 09:49:21 +0000 (02:49 -0700)] 
Merge pull request #42 from Un1matr1x/change/readme.

overhaul Readme.md

13 years agoWiki-Links changed, ModPython added, small optical changes
Un1matr1x [Sun, 1 May 2011 09:17:03 +0000 (11:17 +0200)] 
Wiki-Links changed, ModPython added, small optical changes

13 years agoUpdate to latest Csocket
Uli Schlachter [Sat, 30 Apr 2011 10:29:12 +0000 (12:29 +0200)] 
Update to latest Csocket

This fixes a problem where Csocket detected socket timeouts (as configured with
SetTimeout()) too late if there was few activity. See csocket's git commit
message for more info, I'm lazy. :-P

Signed-off-by: Uli Schlachter <redacted>
13 years agoDon't confuse people with away module.
Alexey Sokolov [Mon, 25 Apr 2011 02:44:52 +0000 (09:44 +0700)] 
Don't confuse people with away module.

13 years agoShow error for --makepem if compiled without SSL.
Alexey Sokolov [Mon, 25 Apr 2011 02:42:50 +0000 (09:42 +0700)] 
Show error for --makepem if compiled without SSL.

13 years agoAllow log module to get no arguments.
Alexey Sokolov [Thu, 21 Apr 2011 03:02:15 +0000 (10:02 +0700)] 
Allow log module to get no arguments.

This was broken since znc-0.098-17-g64e565c (563bce5987ca4c24035279126243ea0f5c7b9efa)
which introduced possibility of log module to specify wanted path as argument.

Thanks to turnor for reporting this.

13 years agoCsocket: Compile when SSLv2 is disabled in openssl
Uli Schlachter [Fri, 15 Apr 2011 16:03:38 +0000 (18:03 +0200)] 
Csocket: Compile when SSLv2 is disabled in openssl

Signed-off-by: Uli Schlachter <redacted>
13 years agoMake ProtectWebSessions to be checkbox in webadmin.
Alexey Sokolov [Thu, 14 Apr 2011 03:04:27 +0000 (10:04 +0700)] 
Make ProtectWebSessions to be checkbox in webadmin.

13 years agoAdded myself to authors, in case this lands.
Michael Edgar [Thu, 14 Apr 2011 01:21:46 +0000 (21:21 -0400)] 
Added myself to authors, in case this lands.

13 years agoAdded a global config option for IP-based session protection.
Michael Edgar [Thu, 14 Apr 2011 00:24:26 +0000 (20:24 -0400)] 
Added a global config option for IP-based session protection.

The new setting defaults to true, and is settable in the web admin panel. When
set to false, IP address checks are ignored. For users behind proxies (students,
large corporate networks) that don't guarantee a consistent IP, this makes the
web admin panel much more usable.

13 years agopasswords >8chars on Solaris, nitpicky solaris LIBS
Paul Driver [Mon, 4 Apr 2011 20:01:49 +0000 (21:01 +0100)] 
passwords >8chars on Solaris, nitpicky solaris LIBS

13 years agoFix ConfigTest.cpp and cert.cpp so they compile
Kyle Fuller [Mon, 4 Apr 2011 18:16:05 +0000 (19:16 +0100)] 
Fix ConfigTest.cpp and cert.cpp so they compile

This was broken since ZNCDebug.cpp was introduced

13 years agoRemove a pointless status command provided by the shell module
Kyle Fuller [Sun, 3 Apr 2011 01:12:16 +0000 (02:12 +0100)] 
Remove a pointless status command provided by the shell module

13 years agoAdd the cert module which allows you to use a SSL certificate on outgoing IRC connections
Kyle Fuller [Tue, 29 Mar 2011 16:55:50 +0000 (17:55 +0100)] 
Add the cert module which allows you to use a SSL certificate on outgoing IRC connections

13 years agoInclude signal.h to make znc compile again
Kyle Fuller [Sun, 3 Apr 2011 19:03:37 +0000 (20:03 +0100)] 
Include signal.h to make znc compile again

13 years agoDon't use poll() on Mac OS
Uli Schlachter [Sun, 3 Apr 2011 16:04:14 +0000 (18:04 +0200)] 
Don't use poll() on Mac OS

Congratulations, Apple. Your OS is really great. In some versions (according to
google, it used to work in older releases), poll() can only handle sockets. If
you give it a pipe (as e.g. the shell module does), it will fail with POLLNVAL
which Csocket handles by going into an endless loop.

Signed-off-by: Uli Schlachter <redacted>
13 years agoMerge branch 'py' of https://github.com/kylef/znc into kylef-py
Alexey Sokolov [Sun, 3 Apr 2011 13:13:17 +0000 (20:13 +0700)] 
Merge branch 'py' of https://github.com/kylef/znc into kylef-py

Conflicts:
modules/modpython/znc.py

13 years agoRearrange compiler/linker flags for modpython.
Alexey Sokolov [Sun, 3 Apr 2011 12:28:17 +0000 (19:28 +0700)] 
Rearrange compiler/linker flags for modpython.

This should fix some issues with --as-needed.

Thanks to wired for reporting this.

13 years agoParse new ExecSock.h and ZNCDebug.h with SWIG.
Alexey Sokolov [Sun, 3 Apr 2011 12:13:47 +0000 (19:13 +0700)] 
Parse new ExecSock.h and ZNCDebug.h with SWIG.

That functionality was accessible by perl and python modules before.
Now that stuff is in own headers, so let's parse them too,
to have them still be able to use this.

13 years agoFix compilation error introduced in 3f24f28736.
Alexey Sokolov [Sun, 3 Apr 2011 12:12:38 +0000 (19:12 +0700)] 
Fix compilation error introduced in 3f24f28736.

psychon uses --enable-run-from-source and therefore missed this use of CFile.

13 years agoStop including FileUtils.h in any header
Uli Schlachter [Sun, 3 Apr 2011 09:48:50 +0000 (11:48 +0200)] 
Stop including FileUtils.h in any header

This causes every piece of code which wants to use CFile or CDir to have to
include FileUtils.h. This causes quite some noise.

Signed-off-by: Uli Schlachter <redacted>
13 years agoMove CExecSock to ExecSock.h
Uli Schlachter [Sun, 3 Apr 2011 09:13:37 +0000 (11:13 +0200)] 
Move CExecSock to ExecSock.h

As a result, Utils.h no longer has to include Socket.h and lots of stuff breaks.

Due to a severe case of lazyness, some of the code for CExecSock is still in
Utils.cpp. Feel free to fix if you really have to.

Signed-off-by: Uli Schlachter <redacted>
13 years agoMove DEBUG() from Utils.h into new ZNCDebug.h
Uli Schlachter [Sun, 3 Apr 2011 08:41:27 +0000 (10:41 +0200)] 
Move DEBUG() from Utils.h into new ZNCDebug.h

Signed-off-by: Uli Schlachter <redacted>
13 years agodefines.h doesn't need main.h
Uli Schlachter [Sun, 3 Apr 2011 08:24:15 +0000 (10:24 +0200)] 
defines.h doesn't need main.h

Signed-off-by: Uli Schlachter <redacted>
13 years agoDon't include FileUtils.h in znc.h or Modules.h
Uli Schlachter [Sun, 3 Apr 2011 08:21:59 +0000 (10:21 +0200)] 
Don't include FileUtils.h in znc.h or Modules.h

Both these headers only really need CFile* which can be handled with a forward
declaration.

To make this possible, some methods are moved from the header file into the
corresponding implementation file, because they used CFile or CDir static
members.

Signed-off-by: Uli Schlachter <redacted>
13 years agoInclude less headers in WebModules.h
Uli Schlachter [Sun, 3 Apr 2011 08:06:16 +0000 (10:06 +0200)] 
Include less headers in WebModules.h

From Client.h, only CAuthBase is needed. This is solved by moving the whole
CWebAuth class to WebModules.cpp.

The include of FileUtils.h is avoided by changing the API. GetAvailSkins() now
returns the skin names instead of a CFile for the skin's path.

Signed-off-by: Uli Schlachter <redacted>
13 years agoHandle Listeners after SSLCertFile
Uli Schlachter [Sun, 3 Apr 2011 07:27:08 +0000 (09:27 +0200)] 
Handle Listeners after SSLCertFile

Else, the Listeners will ignore the SSLCertFile config option.

Signed-off-by: Uli Schlachter <redacted>
13 years agoDon't include znc.h in Listener.h
Uli Schlachter [Sat, 2 Apr 2011 21:28:32 +0000 (23:28 +0200)] 
Don't include znc.h in Listener.h

znc.h pulls in most headers, Socket.h pulls in way less headers. This should
speed up compiles by 0.0000000314%.

The rest of this is compile fixes for stuff which assumed that Listener.h
includes znc.h for them. :-)

Signed-off-by: Uli Schlachter <redacted>
13 years agoRaise our IRC connection timeouts
Uli Schlachter [Sat, 2 Apr 2011 21:03:33 +0000 (23:03 +0200)] 
Raise our IRC connection timeouts

ZNC will now send a PING if the connection was idle for 270 to 300 seconds.
After 540 seconds (that is, about 270 to 240 seconds later) the timeout is
triggered and ZNC reconnects.

These values are "inspired" by the values eggdrop uses.

The old timeouts were 180 to 210 secs for the PING and 240 secs for the timeout.

Signed-off-by: Uli Schlachter <redacted>
13 years agoImprove the handling of module load messages
Uli Schlachter [Sat, 2 Apr 2011 14:52:52 +0000 (16:52 +0200)] 
Improve the handling of module load messages

Instead of doing ugly stuff to shorten the "Loaded Module [foo]" message, we now
just always generate the shorter version of that message. The code paths which
didn't do this shortening now prepend that message themselves.

The result is that every message looks the same as it did before, but the code
for generating these is a little nicer.

Signed-off-by: Uli Schlachter <redacted>
13 years agoConfig: Fix some errors in the comment handling
Uli Schlachter [Fri, 1 Apr 2011 19:23:11 +0000 (21:23 +0200)] 
Config: Fix some errors in the comment handling

Signed-off-by: Uli Schlachter <redacted>
13 years agoRe-add the ISpoof{File,Format} handling which was lost
Uli Schlachter [Fri, 1 Apr 2011 19:22:14 +0000 (21:22 +0200)] 
Re-add the ISpoof{File,Format} handling which was lost

Whoops, someone here failed at rebasing stuff.

Signed-off-by: Uli Schlachter <redacted>