Commit Graph

2428 Commits

Author SHA1 Message Date
Un1matr1x 708366d9ae remove some more of the evil trailing white spaces & tabs 2011-06-09 21:29:13 +02:00
Un1matr1x 43d0f6d121 Merge branch 'master' of git://github.com/znc/znc into white_space_edition 2011-06-09 21:00:33 +02:00
Alexey Sokolov 4dbd088fd7 Support compiling python modules in cwd 2011-06-08 14:14:53 +07:00
Un1matr1x d77298545e tabs in newlines could be removed² 2011-06-08 06:51:13 +02:00
Un1matr1x 7a4a0e9537 Merge branch 'master' of git://github.com/znc/znc into bugfix/white_space_edition 2011-06-08 06:47:46 +02:00
Kyle Fuller 98d8e5e37e 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
2011-06-08 04:04:08 +01:00
Brian 3a16fe54c1 Redo commands for send_raw modules. Also, use the new CModCommand stuff. 2011-06-07 23:31:24 +01:00
Un1matr1x 718d28070a remove evil trailing white space 2011-06-07 21:39:25 +02:00
Uli Schlachter f6113b322d Merge pull request #50 from bpcampbe/TrimBuffer
Add CChan::TrimBuffer and have SetBufferCount call it.
2011-06-07 09:23:05 -07:00
Kyle Fuller ea19e3f3dc Improve the debug messages from identfile module 2011-06-04 17:00:10 +01:00
Alexey Sokolov 797b0a7ff9 Check what make should user use and ask user to do that. 2011-06-04 14:19:54 +07:00
Alexey Sokolov 4a4104a480 Add regex comment for CUser::IsValidUserName() 2011-06-02 08:10:46 +07:00
Kyle Fuller e83e14ab67 Do not include DCCSock in mod(perl|python) 2011-06-01 22:19:30 +01:00
Kyle Fuller d71da02a81 Make schat use DCCBindHost 2011-06-01 20:21:27 +01:00
Kyle Fuller c635caeab2 Use the module save path for dcc's, and remove DLPath since it is no longer used. 2011-06-01 20:21:27 +01:00
Kyle Fuller 16047eaf81 Move dcc file transfers to their own module 2011-06-01 20:21:27 +01:00
Kyle Fuller 8f508cb4a5 Migrate dcc bouncing to its own module 2011-06-01 20:21:27 +01:00
Kyle Fuller 0b360c0102 Remove OnDCCUserSend module hook 2011-06-01 20:21:27 +01:00
Kyle Fuller 611e086cbf Rename "str" to "String" in the admin panel.
This was accidentally renamed in abed808121.
2011-05-31 02:00:23 +01:00
Brian c3a15bf695 Add CChan::TrimBuffer and have SetBufferCount call it. 2011-05-29 18:37:05 -06:00
Kyle Fuller 456dfde05f Add a web interface to the certauth module 2011-05-25 23:52:05 +01:00
Kyle Fuller 1c0edff722 Make certauth accept a optional argument of the key when you add a key 2011-05-25 23:52:05 +01:00
Kyle Fuller 66e250783d Make certauth use the CModCommand API 2011-05-25 23:52:05 +01:00
Kyle Fuller abed808121 Rename a variable from 'string' to 'str' because 'string' shadows a global declaration 2011-05-25 16:48:02 +01:00
Uli Schlachter 4324d5ff02 Merge branch 'master' of https://github.com/pfn/znc
Conflicts:
	modules/extra/away.cpp

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-05-21 13:58:41 +02:00
Uli Schlachter 6deae62c5b 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 <psychon@znc.in>
2011-05-15 13:15:51 +02:00
Uli Schlachter 2985efb524 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 <psychon@znc.in>
2011-05-13 18:19:08 +02:00
Uli Schlachter 3e591e7043 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 <psychon@znc.in>
2011-05-13 17:24:10 +02:00
Uli Schlachter 3034d1f81a 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 <psychon@znc.in>
2011-05-13 16:40:40 +02:00
Uli Schlachter eb229659e5 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 <psychon@znc.in>
2011-05-13 15:48:47 +02:00
Uli Schlachter 55ba59de02 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 <psychon@znc.in>
2011-05-08 22:19:51 +02:00
Alexey Sokolov 7091937b67 Add bootstrap.sh as symlink to autogen.sh
Some projects use name autogen, and some use bootstrap. Meh.
2011-05-08 15:14:13 +07:00
Alexey Sokolov 7d912d1d2d Check SWIG version in configure. 2011-05-06 15:17:30 +07:00
Uli Schlachter 54d8cd6831 Some fixes for README.md
This fixes some broken markup and adds modpython

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-05-01 11:58:03 +02:00
Uli Schlachter ca81a0c786 Merge pull request #42 from Un1matr1x/change/readme.
overhaul Readme.md
2011-05-01 02:49:21 -07:00
Un1matr1x 9aa1df15e4 Wiki-Links changed, ModPython added, small optical changes 2011-05-01 11:34:22 +02:00
Uli Schlachter 6e48f3535c 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 <psychon@znc.in>
2011-04-30 12:29:12 +02:00
Alexey Sokolov 5ece00f168 Don't confuse people with away module. 2011-04-25 09:44:52 +07:00
Alexey Sokolov e127d44170 Show error for --makepem if compiled without SSL. 2011-04-25 09:42:50 +07:00
Alexey Sokolov 37e6bbd6ae Allow log module to get no arguments.
This was broken since znc-0.098-17-g64e565c (563bce5987)
which introduced possibility of log module to specify wanted path as argument.

Thanks to turnor for reporting this.
2011-04-21 10:02:15 +07:00
Uli Schlachter e0c5c3b93c Csocket: Compile when SSLv2 is disabled in openssl
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-04-15 18:03:38 +02:00
Alexey Sokolov b8b6563ebd Make ProtectWebSessions to be checkbox in webadmin. 2011-04-14 10:04:27 +07:00
Michael Edgar 5560b795d1 Added myself to authors, in case this lands. 2011-04-13 21:21:46 -04:00
Michael Edgar a9ba4020db 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.
2011-04-13 20:24:26 -04:00
Paul Driver 2c6a54b617 passwords >8chars on Solaris, nitpicky solaris LIBS 2011-04-04 21:01:49 +01:00
Kyle Fuller 5cf5775bbc Fix ConfigTest.cpp and cert.cpp so they compile
This was broken since ZNCDebug.cpp was introduced
2011-04-04 19:19:29 +01:00
Kyle Fuller ea5ec8496c Remove a pointless status command provided by the shell module 2011-04-04 16:57:44 +01:00
Kyle Fuller 8ad2d907b5 Add the cert module which allows you to use a SSL certificate on outgoing IRC connections 2011-04-04 16:52:28 +01:00
Kyle Fuller 322c63cd05 Include signal.h to make znc compile again 2011-04-03 20:03:37 +01:00
Uli Schlachter 72c1fa0c90 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 <psychon@znc.in>
2011-04-03 18:04:14 +02:00