Commit Graph

867 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
Brian 3a16fe54c1 Redo commands for send_raw modules. Also, use the new CModCommand stuff. 2011-06-07 23:31:24 +01:00
Kyle Fuller ea19e3f3dc Improve the debug messages from identfile module 2011-06-04 17:00:10 +01: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
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
Alexey Sokolov 7d912d1d2d Check SWIG version in configure. 2011-05-06 15:17:30 +07:00
Alexey Sokolov 5ece00f168 Don't confuse people with away module. 2011-04-25 09:44:52 +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
Alexey Sokolov b8b6563ebd Make ProtectWebSessions to be checkbox in webadmin. 2011-04-14 10:04:27 +07: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
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
Alexey Sokolov e51b7daedc Merge branch 'py' of https://github.com/kylef/znc into kylef-py
Conflicts:
	modules/modpython/znc.py
2011-04-03 20:13:17 +07:00
Alexey Sokolov 299e1f1b4c Rearrange compiler/linker flags for modpython.
This should fix some issues with --as-needed.

Thanks to wired for reporting this.
2011-04-03 19:28:17 +07:00
Alexey Sokolov e746438022 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.
2011-04-03 19:13:47 +07:00
Uli Schlachter 3f24f28736 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 <psychon@znc.in>
2011-04-03 11:50:44 +02:00
Uli Schlachter 1761fe71e4 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 <psychon@znc.in>
2011-04-03 11:50:41 +02:00
Uli Schlachter ad442f4f10 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 <psychon@znc.in>
2011-04-03 10:06:16 +02:00
Uli Schlachter ca36887ddf 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 <psychon@znc.in>
2011-04-02 23:28:32 +02:00
Uli Schlachter f0bf7134ec 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 <psychon@znc.in>
2011-04-02 16:52:52 +02:00
Kyle Fuller 233566edb6 Cleanup znc.py 2011-04-01 18:23:36 +01:00
Kyle Fuller 14452a1cb5 Make znc.py follow pep8 2011-04-01 18:23:24 +01:00
Kyle Fuller 1fc9aeefec Add __repr__ methods to CUser, CChan, CNick in modpython 2011-04-01 17:13:17 +01:00
Kyle Fuller 9db98d7cee Add __str__ methods to CModule, CUser, CChan, and CNick in modpython 2011-04-01 01:19:57 +01:00
Uli Schlachter 23fb4df67a Remove config-related module hooks
This removes the following module hooks:

OnConfigLine()
OnWriteConfig()
OnWriteUserConfig()
OnWriteChanConfig()

Modules could use these hooks for writing/reading their own stuff to/from
znc.conf. However, no module (ever?) did this and IMHO no module should ever do
this either. Modules can save stuff via SetNV(), module arguments (SetArgs())
and in their GetSavePath().

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-03-31 17:29:49 +02:00
Alexey Sokolov 45209eca33 modpython: Make strings to be stringable.
Now you can use str() on objects of znc.String.
The same is true for arguments which represent CString&.
2011-03-31 20:41:59 +07:00
Alexey Sokolov b8043c3aac modpython: move CPyRetString to own header.
It was defined twice: in modpython.cpp, and in modpython.i
And there is a fake CPyRetString in modpython.i

Now both places which use real CPyRetString include the file instead.
Fake CPyRetString is still in modpython.i
2011-03-31 20:13:19 +07:00
Alexey Sokolov ba915eb9c4 Use pkg-config for modpython.
python3-config fails when python is installed not system-wide.
It doesn't return -L/path/to/libs.
pkg-config resurns it.

Note that this changes meaning of optional argument to ./configure --enable-python=...
2011-03-31 20:13:19 +07:00
Kyle Fuller 51ac51a252 Create a identfile module, this replaces the old ident spoofing built into znc 2011-03-30 19:48:12 +01:00
Kyle Fuller 703f2cd5bb Remove ident spoof from znc core 2011-03-30 19:16:53 +01:00
Kyle Fuller 7162b01111 Add the OnIRCConnectionError(CIRCSock *pIRCSock) module hook 2011-03-30 19:15:42 +01:00
Uli Schlachter 0ff6cd7491 Merge branch 'notes' of https://github.com/kylef/znc 2011-03-30 10:38:07 +02:00
Kyle Fuller 4303278424 Add a option to the notes module so that you can prevent it from sending you notes when you connect 2011-03-30 01:20:29 +01:00
Kyle Fuller 71888506b8 Make the notes module use CModCommand 2011-03-30 00:57:58 +01:00
Alexey Sokolov 6db2ac8ac6 Fix modperl and modpython installations.
When modules' static data files were moved to own dir,
install_metadirs was removed from Makefile.
But modperl and modpython's makefiles still had dependance on it.
2011-03-30 01:21:05 +07:00