Commit Graph

2728 Commits

Author SHA1 Message Date
Uli Schlachter 4d1e97ed47 Fix AX_PTHREAD to actually work
At first the test was failing with the following error due to my CXXFLAGS:

conftest.cpp:20:37: error: parameter 'a' set but not used
[-Werror=unused-but-set-parameter]

Then it figured out that -lpthread works, but I wondered why the test for
"-pthread" still fails. This is where I realized that it is testing with C++
compiler, but puts its stuff in $CFLAGS which is just ignored. So a little
search-and-replace later, this now uses $CXXFLAGS.

At this point the results of the tests looked good, but znc failed to link,
because it didn't use -pthread when linking. One little "PTHREAD_LIBS=" later,
that problem was also gone and I can finally commit this. Yay.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-02-04 16:08:45 +01:00
Uli Schlachter 1d16d1ce7d Fix a stupid bug in CUser::~CUser()
A CIRCNetwork's destructor removes the network from its associated user's list
of networks. Now that you know this, stare at the diff until you figure out the
problem. Yeah, "ouch".

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-02-04 14:16:54 +01:00
Uli Schlachter 233897b3a8 threaded DNS: Remove an unneeded function
This inlines the function into its only caller.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-02-04 14:15:52 +01:00
Uli Schlachter 94c7b04245 Threaded DNS: Remove TDNS mutex
POSIX actually guarantees for us that this white is atomic and thus a partial
write is not allowed.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-02-04 14:15:52 +01:00
Alexey Sokolov ae68a5a608 Mods are network mods by default.
Network modules are the simplest ones.
2012-02-04 00:29:58 +07:00
Alexey Sokolov b966204456 Fix help of admin module.
DCCBindHost is string, not boolean.
2012-02-03 21:51:33 +07:00
Alexey Sokolov 6b2029fa16 Show error from bootstrap.sh if pkg-config not found.
It generated broken configure script without pkg-config installed.
2012-02-03 08:44:24 +07:00
Alexey Sokolov 140d83eb30 Merge branch 'master' of github.com:znc/znc 2012-01-30 00:40:06 +07:00
Alexey Sokolov b811ea83d5 Describe how to use networks. 2012-01-30 00:38:51 +07:00
Kyle Fuller 991e7f2fac README: Explain that we need to run ./autogen.sh if compiling from git
Closes #70
2012-01-27 23:51:02 +00:00
Alexey Sokolov fa287ef791 Make networks a bit less confusing.
If user is connected without network, try "default" network first, if it
exists. If not, try "user" network. If it doesn't exist too, just use
the first one.

Also configs converted from old configs have "default" network instead
of "user" one.
2012-01-27 22:51:09 +07:00
Alexey Sokolov e0f4fad2ff Identfile: don't crash when ZNC is shutting down.
Thanks to Domin for reporting this.
2012-01-27 06:37:41 +07:00
Alexey Sokolov ea6993ec68 Hide new compilation warnings of modperl...
They appeared with yesterdays patch, which fixes few return values.
2012-01-23 19:13:23 +07:00
Alexey Sokolov 7b213ef462 Fix compilation of modperl...
It's dependency order was broken since I separated linking of modules
from compilation.
2012-01-23 19:09:24 +07:00
Alexey Sokolov 897806a84b Don't rebuild modules during make install. 2012-01-23 04:10:02 +07:00
Alexey Sokolov 00e26c8dbc Perl: fix several methods to return perl stuff instead of pointers. 2012-01-23 04:09:24 +07:00
Uli Schlachter 29564f1c7e CFile: Make sure errno is always set correctly
This fixes weird problems were strerror() made us print garbage.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-01-22 18:51:01 +01:00
Uli Schlachter beacc0180c TDNS: Fix a use-after-free-race-with-threads
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-01-19 19:41:21 +01:00
Kyle Fuller 6a2b5a23c7 README: Display the writing module links more clearly 2012-01-19 14:24:34 +00:00
Kyle Fuller 9a0af843b7 Make *raw a network module by default 2012-01-18 01:04:39 +00:00
Kyle Fuller b447169011 Allow setting a network-specific settings the same as the user setting
Fixes #94
2012-01-17 22:01:19 +00:00
Kyle Fuller f5dbe86543 CTCP's with no values should not be passed to the client
Fixes #105
2012-01-17 21:40:14 +00:00
Alexey Sokolov 937998d4a5 Merge branch 'master' into tdns 2012-01-15 13:12:28 +07:00
Alexey Sokolov ff8065ed32 TDNS: Fix few incompabilities with last Csocket. 2012-01-15 13:11:56 +07:00
Alexey Sokolov 0a7ef76de3 Use @t=time instead of @time for server-time capability.
It's incompatible change, but it makes protocol more flexible.
Version with @time was never released anyway.
2012-01-15 12:51:03 +07:00
Kyle Fuller 2d9a537c33 "no" should be false in CString::ToBool() 2012-01-15 05:18:13 +00:00
Kyle Fuller c8f1a08b58 *admin: SetChan takes the network as an argument 2012-01-15 04:17:45 +00:00
Kyle Fuller 13cfb161c9 Add outgoing lines to the buffer if we are "offline" 2012-01-15 03:54:52 +00:00
Alexey Sokolov fde3826e73 Merge pull request #103 from stephank/master
Update Csocket, fix OS X build.
2012-01-14 19:50:48 -08:00
Stéphan Kochen 4bb365cda3 Update to Csocket 6da41d339f
Fixes build on OS X.
2012-01-15 02:36:03 +01:00
Uli Schlachter 10ece5d2cc CHTTPSock: Remove some useless member methods
The defaults from Csock / CSocket will be fine.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-01-14 12:09:25 +01:00
Uli Schlachter c87e7cf5ba Update Csocket to e00323f9f18
This breaks API for Csock::SockError()!

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-01-14 11:33:38 +01:00
Uli Schlachter 02e42958f0 Make certs valid for 10 years
Previously, a certificate generated with --makepem expired after a year which is
weird and pointless (come on, it's self-signed!).

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-01-13 20:57:10 +01:00
Kyle Fuller c2316321b8 JUMPNETWORK: Tell the user we have switched network before we do
The reason for this is so that any messages sent in *status by attaching
a new network will show up after the switched message.

<*status> Switched to efnet
<*status> You are currently disconnected from IRC. Use 'connect' to reconnect.
2012-01-11 14:49:25 +00:00
Kyle Fuller 3d7d1793aa Move IRCConnectEnabled to each network instead of a global user setting 2012-01-11 14:49:17 +00:00
Kyle Fuller 4abf3feae4 Remove trailing whitespace 2012-01-11 13:18:54 +00:00
Alexey Sokolov 1b7c9f4ed0 Make bouncedcc's description a bit shorter to fit in small tables better in output of *status. 2012-01-11 09:46:56 +07:00
Alexey Sokolov d1dcee45f2 Merge pull request #102 from TheEvilPhoenix/master
Pull for: Updated bouncedcc module description
2012-01-10 18:44:02 -08:00
TEP 9fdac9f37a Modified description field for bouncedcc module to explain what the module actually does. 2012-01-10 21:37:16 -05:00
Alexey Sokolov 8e558e83ab nickserv: support also wenet.ru's nickserv request. 2012-01-09 16:45:48 +07:00
Alexey Sokolov 8ca1859a22 Fix python in README 2012-01-09 02:52:02 +07:00
Alexey Sokolov 9680b6a8eb Make autovoice a network module.
Thanks to nyuszika7h for suggestion.
2012-01-02 19:04:56 +07:00
Alexey Sokolov 6274111aa7 Add one more message for nickserv's request to auth. 2012-01-02 16:25:14 +07:00
Alexey Sokolov f374874b1a Fix several issues in modpython.
1. In several cases CString wasn't handled properly.
2. Some container-like object didn't return from functions properly.
3. Buffer.h was missing
2012-01-02 14:40:50 +07:00
Alexey Sokolov 13bfec0809 Python and Perl should know that off_t is integer type. 2012-01-02 02:44:09 +07:00
Alexey Sokolov 52ba5917af Merge branch 'master' of github.com:znc/znc 2012-01-01 22:06:02 +07:00
Alexey Sokolov 78c6b1edd2 Fix moddata path for python modules.
How did it ever work before? ><
2012-01-01 22:04:22 +07:00
Uli Schlachter 87aad36121 Increase the version number to 0.205
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-01-01 14:50:20 +01:00
Alexey Sokolov 7ca8aa96a2 Add missing dependency to modperl. 2012-01-01 19:47:04 +07:00
Alexey Sokolov a0cd9d4cee Merge branch 'master' of github.com:znc/znc 2012-01-01 16:59:36 +07:00