Commit Graph

739 Commits

Author SHA1 Message Date
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
darthgandalf 0bc606a928 Modperl uses some features of Perl 5.10, so let it depend on it.
Now we check version of perl in ./configure and on runtime when modperl is loaded.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2183 726aef4b-f618-498e-8847-2d620e286838
2010-12-05 06:27:09 +00:00
darthgandalf 1baa019705 Modperl now does implicit conversion of arguments to CString when needed.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2180 726aef4b-f618-498e-8847-2d620e286838
2010-11-13 15:21:29 +00:00
psychon f15aef4807 Remove some semicolon that -pedantic didn't like
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2178 726aef4b-f618-498e-8847-2d620e286838
2010-11-07 16:14:13 +00:00
psychon 5e070e7881 Turn CChan::m_msNicks into a map<CString, CNick>
Saving a pointer in a map seems like a bad idea and means we have to delete all
the contained stuff by hand when the channel is destroyed. This requires us to
loop through the channel which is slow. A map is meant as a container, so use it
as one and directly save the stuff we want it to save in there.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2175 726aef4b-f618-498e-8847-2d620e286838
2010-11-06 19:41:40 +00:00
psychon ed924cb9e5 admin: Properly report errors in "addserver"
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2172 726aef4b-f618-498e-8847-2d620e286838
2010-11-06 15:51:58 +00:00
cflakes d3279f9707 lastseen module: replaced some obnoxious code :P
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2164 726aef4b-f618-498e-8847-2d620e286838
2010-10-23 11:50:57 +00:00
cflakes ceebe40c2b lastseen module: minor code improvements: moved strftime business into a separate method.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2163 726aef4b-f618-498e-8847-2d620e286838
2010-10-23 11:46:15 +00:00
psychon e93523c42e partyline: Only inject prefixes if we know the prefixes
There are apparently "IRC" daemons (which don't deserve that name) that don't
send any 005. Yes, I'm looking at you, chat.wikileaks.org. For these servers we
shouldn't inject partyline's channel prefix because that makes us send out a
"CHANTYPES=~" line which severely confuses clients. XChat then turns everything
into a query!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2162 726aef4b-f618-498e-8847-2d620e286838
2010-10-21 17:27:19 +00:00
darthgandalf 5df13a3eda Fix modperl timers API.
It was pretty difficult to pass arbitrary argument. Needed to generate
new sub each time etc.
Now CreateTimer gets new named parameter: context. Its value will be
passed to given sub as named parameter context.
Also as it was hard to use variant of CreateTimer without named params
(there's no parameter 'context' there), that variant is gone.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2160 726aef4b-f618-498e-8847-2d620e286838
2010-10-17 09:27:15 +00:00
darthgandalf 9c2692f1f1 Remove sockets and timers from perl modules in their destructors.
This should decrease memory usage a bit, and decrease chance of crashing znc from bad perl module a bit.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2156 726aef4b-f618-498e-8847-2d620e286838
2010-10-10 09:59:15 +00:00
psychon 8a690170e3 chansaver: Ignore channel key "*"
There are some nets out there which display the current channel key as "*" if
you are already in the channel. This means ZNC would remember the channel key as
"*" and thus be unable to rejoin the channel. Bad.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2155 726aef4b-f618-498e-8847-2d620e286838
2010-10-02 12:39:20 +00:00
psychon 8e7ac59d25 clearbufferonmsg: Skip detached chans
Since the user can't read detached channels, there is no point in clearing their
buffer. Let's leave them alone instead.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2151 726aef4b-f618-498e-8847-2d620e286838
2010-09-28 08:10:43 +00:00
darthgandalf 768093b792 More debugging output from modperl.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2147 726aef4b-f618-498e-8847-2d620e286838
2010-09-27 14:45:42 +00:00
darthgandalf 14ffd7c769 Improve portability of modperl by trying several UUID generators.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2146 726aef4b-f618-498e-8847-2d620e286838
2010-09-27 14:29:40 +00:00
darthgandalf a30a201338 Fix spaces in modperl.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2144 726aef4b-f618-498e-8847-2d620e286838
2010-09-27 13:30:54 +00:00
darthgandalf 9fe92c3725 Fix modperl. It didn't work.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2143 726aef4b-f618-498e-8847-2d620e286838
2010-09-27 13:08:07 +00:00
darthgandalf fa8f758c7b Remove one more perl's pollution of global namespace which caused modperl loading error under some circumstances.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2142 726aef4b-f618-498e-8847-2d620e286838
2010-09-27 11:45:32 +00:00
darthgandalf 6743674646 Fix bug introduced in r2133: modperl made znc crash when using web.
Adding new hooks to modules is the following procedure:
1. Add it to modperl/module.h
2. Add it to modperl/startup.pl
3. Add it to modperl/functions.in
4. Run ./codegen.pl

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2140 726aef4b-f618-498e-8847-2d620e286838
2010-09-23 04:41:35 +00:00
darthgandalf 4b54649506 Modperl's CreateTimer function now supports named arguments.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2138 726aef4b-f618-498e-8847-2d620e286838
2010-09-20 06:34:20 +00:00
darthgandalf 1d6f11f71a Fix: modperl hooks didn't get bool arguments.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2136 726aef4b-f618-498e-8847-2d620e286838
2010-09-13 16:27:20 +00:00
darthgandalf 417018172c Really fixed embedded web stuff after installation.
This introduces workaround, but templates can't look
the same filename in different directories...

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2135 726aef4b-f618-498e-8847-2d620e286838
2010-09-12 18:19:45 +00:00
darthgandalf 0b69ae8bd4 Add new hook OnEmbeddedWebRequest to modperl.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2133 726aef4b-f618-498e-8847-2d620e286838
2010-09-12 16:50:08 +00:00
darthgandalf a440da25c6 Stickychan module adds a checkbox to channel page of webadmin.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2132 726aef4b-f618-498e-8847-2d620e286838
2010-09-11 18:53:57 +00:00
darthgandalf 27496f6c85 Blockuser module adds a checkbox to user page in webadmin.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2131 726aef4b-f618-498e-8847-2d620e286838
2010-09-11 18:53:30 +00:00
darthgandalf 45c7561485 Lastseen module embeds info about last login time to webadmin user page.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2130 726aef4b-f618-498e-8847-2d620e286838
2010-09-11 18:52:51 +00:00
darthgandalf 8d5921f966 Webadmin now supports embedding of web stuff to user and channel pages.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2129 726aef4b-f618-498e-8847-2d620e286838
2010-09-11 18:52:24 +00:00
darthgandalf ced8aa82ed Don't fail make install if there're no perl modules in source dir.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2127 726aef4b-f618-498e-8847-2d620e286838
2010-09-10 20:34:24 +00:00
darthgandalf 70ae4bab6f Lastseen module doesn't display links to webadmin webpages anymore if webadmin isn't loaded.
Patch by BrianC, thanks.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2126 726aef4b-f618-498e-8847-2d620e286838
2010-09-09 03:30:27 +00:00