Commit Graph

767 Commits

Author SHA1 Message Date
psychon
b9b0fd4c87 Oh, shiny... NOT
(Yes, it's that time of the year again)

Signed-off-by: Uli Schlachter <psychon@znc.in>

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2260 726aef4b-f618-498e-8847-2d620e286838
2011-01-14 17:03:24 +00:00
darthgandalf
b6c8e10633 Include zncconfig.h before any system headers in modpython and modperl bindings.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2255 726aef4b-f618-498e-8847-2d620e286838
2011-01-07 18:01:26 +00:00
psychon
3ecbf13390 Use autoheader
This commit adds a zncconfig.h to ZNC that is automatically generated by
configure. This is done because the -DPACKAGE_STRING=\"znc\ 0.097\" that
configure adds to CXXFLAGS breaks znc-buildmod.

This means that we have to include zncconfig.h as the very first header in every
C++ file that is compiled. This commit kinda cheats and instead adds this
include as the very first thing to all header files we have. This should
hopefully mean that modules don't have to include this.

Because Csocket includes defines.h too late, this commit causes znc to divert
from upstream Csocket once again. :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2250 726aef4b-f618-498e-8847-2d620e286838
2011-01-07 15:01:08 +00:00
darthgandalf
9fec8f726d Make modpython compiler to fail make on fail of compilation of a python file.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2244 726aef4b-f618-498e-8847-2d620e286838
2011-01-03 05:09:42 +00:00
darthgandalf
452e3f1824 Modpython compiler should depend on Makefile.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2243 726aef4b-f618-498e-8847-2d620e286838
2011-01-03 05:09:18 +00:00
psychon
8a1c2a4711 Include @DEFS@ into our compiler call
On most systems, this should only result in some useless defines being added to
the compiler's command line:

-DPACKAGE_NAME=\"znc\" -DPACKAGE_TARNAME=\"znc\" -DPACKAGE_VERSION=\"0.097\"
-DPACKAGE_STRING=\"znc\ 0.097\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"

However, on some weird arches like e.g. x86, this will make AC_SYS_LARGEFILE
actually work, because that macro adds "-D_FILE_OFFSET_BITS=64" to @DEPS@.

This was found by SilverLeo because modpython didn't compile for him, thanks. :)
(python has "#define _FILE_OFFSET_BITS 64" in pyconfig.h)

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2242 726aef4b-f618-498e-8847-2d620e286838
2011-01-02 17:15:21 +00:00
psychon
44d2816379 Remove some more pointless checks for sPageName.empty()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2241 726aef4b-f618-498e-8847-2d620e286838
2011-01-02 16:33:42 +00:00
psychon
eb730d72d7 notes: Remove a pointless "if"
When you load /mods/notes/ in your browser, OnWebRequest will be called with
sPageName == "index". So that variable can never actually be empty.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2240 726aef4b-f618-498e-8847-2d620e286838
2011-01-02 10:46:46 +00:00
cflakes
40d39f222b Don't use a readonly <input> in lastseen's WebadminUser stub template.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2234 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 15:22:47 +00:00
cflakes
ba183e461f Perform module:
* Be more const.
* Be more correct: only accept requests to /mods/perform/, not to all URLs starting with that.
* Be more considerate: Use "IRC server" instead of "IRCd".



git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2232 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 15:09:07 +00:00
psychon
89edf703f6 Perform: Also parse stuff like "/msg foo bar" via webmods
Signed-off-by: Uli Schlachter <psychon@znc.in>

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2231 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 14:42:43 +00:00
psychon
c8910c4856 Perform: Provide a webinterface
Signed-off-by: Uli Schlachter <psychon@znc.in>

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2230 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 14:42:28 +00:00
psychon
1e0585c485 webadmin: Add all currently missing global settings
These were MaxBufferSize, ConnectDelay, ServerThrottle and AnonIPLimit.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2229 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 09:14:21 +00:00
psychon
eb263869b0 webadmin: Add a "key" inputbox to channels
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2227 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 08:40:44 +00:00
psychon
570fab6e44 webadmin: Add DCCBindHost
Before this commit, editing some user in webadmin cleared their DCCBindHost.
That's definitely not what we want.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2226 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 08:32:58 +00:00
psychon
853ddc5c2a admin: Add TimestampFormat and StatusPrefix
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2225 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 08:07:39 +00:00
darthgandalf
4c6d52c904 Change a way how .pyc are generated from .py
Now Makefile does the search of .py in the source.
Also change some dependencies between other modpython stuff.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2224 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 23:45:12 +00:00
darthgandalf
4be057200b Fix out-of-tree builds.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2223 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 22:40:24 +00:00
darthgandalf
dc8a39db53 Add vim modelines to some files.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2222 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 22:02:26 +00:00
darthgandalf
afa16df2bc Fix make clean for modperl and modpython
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2220 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 19:18:24 +00:00
darthgandalf
ece2c885da Moved generation of modperl/functions.cpp to Makefile.
This should fix some compilation issues.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2219 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 18:29:42 +00:00
darthgandalf
e4b48d50b3 Fix for previous commit.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2217 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 12:16:33 +00:00
darthgandalf
1d103351a9 Make modpython and modperl to work with new OnPart too.
Thanks, SilverLeo.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2216 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 12:00:52 +00:00
darthgandalf
a0c0b73590 Add new parameter to OnPart module hook: part message.
Sorry for API change :)

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2215 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 11:28:41 +00:00
darthgandalf
644632f915 Fix modpython to work with python 3.2
Thanks to nb for reporting and testing

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2214 726aef4b-f618-498e-8847-2d620e286838
2010-12-25 05:04:21 +00:00
psychon
50b57be5af listsockets: Ignore dereferenced sockets
When someone connects to ZNC, this connection is first handled by an instance of
CIncomingConnection. Once we determined if this is a HTTP or an IRC connection,
the connection is handed of to the appropriate class.

The CIncomingConnection instance that was used first will still linger around
for the next event loop iteration and then be destroyed. Since this socket isn't
a "real" connection anymore (another instance of Csock took over for this one),
listsockets should ignore all sockets in state CLT_DEREFERENCE.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2213 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 22:06:13 +00:00
psychon
144cdf256b Add a web interface to listsockets
Thanks to kylef for the patch and again sorry for svn. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2212 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 21:56:35 +00:00
psychon
f6935557ce Refactor listsockets, move the logic to get a string for each column into its own function
Patch by kylef and submitted via git. Sorry that we are using subversion and
that subversion is bad at tracking this kind of authorship. :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2211 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 21:29:06 +00:00
darthgandalf
d2e5a2416c Fix disabling of modperl, modpython.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2210 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 19:29:44 +00:00
psychon
40632f46d0 Split up modules/Makefile.in
This splits the modpython, modperl and modtcl specific parts of
modules/Makefile.in into separate files. There shouldn't be any other changes
than this in here (hopefully).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2209 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 18:30:11 +00:00
darthgandalf
9745dcb4ea Python modules use 'description' attribute of the class now.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2208 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 16:45:22 +00:00
darthgandalf
517307b96a Remove verbosity from pyc files of Makefile.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2207 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 16:23:15 +00:00
darthgandalf
d21a1be74a Fix some dependencies of Makefile
Thanks for zynox for finding this

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2205 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 15:30:19 +00:00
darthgandalf
1854e14749 Make NV API to be easier fot python modules.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2204 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 15:04:23 +00:00
darthgandalf
88c84efc2f Fix error in loading of python modules.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2203 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 07:31:44 +00:00
darthgandalf
7237b9cb2a OOPish API for timers in modperl.
Existing API still works.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2202 726aef4b-f618-498e-8847-2d620e286838
2010-12-23 18:18:06 +00:00
psychon
0cc8bebd2b Various fixes for our Makefiles
- Make sure webskins are installed with the correct permissions even though we
  don't use install for installing them.
- Make "make uninstall" use the correct path for webskins.
- Properly clean up the stuff generated by modperl and modpython on "make clean"
- Don't first install modperl/ and modpython/ only to remove them again later
- Use $(wildcard) to expand *.foo to the empty string if nothing matches.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2201 726aef4b-f618-498e-8847-2d620e286838
2010-12-23 14:15:49 +00:00
darthgandalf
18234a9445 Fix ignoring of fails in Makefile.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2200 726aef4b-f618-498e-8847-2d620e286838
2010-12-23 10:33:42 +00:00
psychon
936b434dbb Add some -Wno flags to modpython
This is now enough that it builds for me! :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2199 726aef4b-f618-498e-8847-2d620e286838
2010-12-23 10:24:35 +00:00
darthgandalf
aee8763c5d modpython/codegen.pl had wrong permissions
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2197 726aef4b-f618-498e-8847-2d620e286838
2010-12-23 01:35:56 +00:00
darthgandalf
a564e25c13 Add modpython module which allows to write ZNC modules on python3.
Notice for distro maintainers: perl interpreter is required to compile modpython.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2196 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:52:53 +00:00
darthgandalf
c7c0d1714c Change internal way of making Makefile to know if need to compile modperl or not.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2195 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:51:49 +00:00
darthgandalf
600cbac913 Fix license header for modperl/CString.i
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2194 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:51:24 +00:00
darthgandalf
df34098eee Fix out-of-tree builds for modperl.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2193 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:50:59 +00:00
darthgandalf
0ad5cf8e71 Proper way of ignoring fails in Makefile.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2192 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:50:34 +00:00
darthgandalf
23d4cf9c6b This is bindings for Perl language, not for it's interpreter, so fix UI in Makefile.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2191 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:50:06 +00:00
darthgandalf
33e1cccc10 Add phoniness to phony makefile targets.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2190 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:49:31 +00:00
darthgandalf
451b7e3200 Fix regression of certauth introduced in r2118
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2187 726aef4b-f618-498e-8847-2d620e286838
2010-12-18 20:49:11 +00:00
darthgandalf
12b1cf63b5 Add functions to Perl API for checking ZNC version.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2185 726aef4b-f618-498e-8847-2d620e286838
2010-12-07 14:04:44 +00:00
darthgandalf
ce45917cc0 Unload perl modules when they are unloaded.
This should make /znc reloadmod and /znc updatemod to work as expected.
So developers don't need to restart znc each time when debugging perl modules anymore.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2184 726aef4b-f618-498e-8847-2d620e286838
2010-12-05 09:38:25 +00:00