Commit Graph

88 Commits

Author SHA1 Message Date
Alexander Færøy
db0e0995e2 Add OnJoining module hook.
This patch adds an OnJoining module hook that allows a module to allow
or disallow joining any given channel.
2014-05-29 23:10:30 +02:00
Alexey Sokolov
9cf61ac6d4 Argh, fuck it. Rename fixed (pointer) versions of OnMode to OnMode2 2014-04-12 08:51:04 +01:00
J-P Nurmi
76bfa99dd0 Add module hooks for raw client and server messages 2014-03-04 00:24:15 +01:00
Alexey Sokolov
618d9c58a4 Fix chansaver's channel keys by adding other OnMode() hooks 2014-02-27 00:49:45 +00:00
Alexey Sokolov
366158d907 Add charset to version info 2014-01-25 13:50:07 +00:00
Alexey Sokolov
d05e069bd4 Fix modperl build on MacOS X
.so is not the right extension for shared objects there
2014-01-17 21:09:03 +00:00
Falk Seidel
f19b4caa43 Welcome to 2014 - year 10 with ZNC 2013-12-31 10:10:55 +01:00
Alexey Sokolov
2a7bc29fcc Fix new OnAdd/DeleteNetwork hooks for perl/python 2013-11-09 10:17:34 +04:00
Alexey Sokolov
b2dcad5fd4 Change ZNC license to Apache 2.0
The following people agreed with the change, in alphabetical order:
(people who approved in several ways are listed only once)
By email:
- Adam (from Anope)
- Austin Morton
- Brian Campbell
- Christian Walde
- Daniel Holbert
- Daniel Wallace
- Falk Seidel
- Heiko Hund
- Ingmar Runge
- Jim Hull
- Kyle Fuller
- Lee Aylward
- Martin Martimeo
- Matt Harper
- Michael J Edgar
- Michael Ziegler
- Nick Bebout
- Paul Driver
- Perry Nguyen
- Philippe (cycomate)
- Reuben Morais
- Roland Hieber
- Sebastian Ramacher
- Stefan Rado
- Stéphan Kochen
- Thomas Ward
- Toon Schoenmakers
- Veit Wahlich
- Wulf C. Krueger

By IRC:
- CNU
- Jonas Gorski
- Joshua M. Clulow
- Prozac/SHiZNO
- SilverLeo
- Uli Schlachter

At https://github.com/znc/znc/issues/311 :
- Alexey Sokolov
- Elizabeth Myers
- flakes
- Jens-Andre Koch
- Jyzee
- KindOne/ineedalifetoday
- Lee Williams
- Mantas Mikulėnas
- md-5
- Reed Loden

At the last few pull requests' comments:
- Allan Odgaard
- Jacob Baines
- Lluís Batlle i Rossell
- ravomavain
- protomouse

The following commits' authors didn't respond:
Trivial changes:
- f70f1086fd
- 4ca8b50e45

The changes which are not presented in master anymore:
- 5512ed2ea0
- 960a4498f7
- 0f739de2c0
- 7f53cc810b

Fix #311
Fix #218
2013-06-14 00:43:34 +04:00
Uli Schlachter
ed478e6f7b make clean: Only delete files that can be regenerated
Previously, "make clean" would happily delete swig's output files even though
configure did not find swig and thus these files could not be generated again.

This half-fixes issue 276. It would be great if the Makefiles never delete files
which are part of the tarball, but at least they now don't delete files which
cannot be regenerated.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-05-07 21:29:11 +02:00
Alexey Sokolov
9f4f2817d1 Fix #293
In GetAvailableMods() modules paths were returned like "moddir//module.pm",
but when they are loaded, they use path "moddir/module.pm".

Because of that our hack of cleaning %INC when the module is unloaded,
which enables UpdateMod, removed wrong record from %INC, left right
record in it, and erased the module's namespace.

When the module was loaded again, the namespace was not restored,
because "require" didn't load the module, because it was still in %INC.

So, when we call a function of that module, the function does not exist
anymore.
2013-03-16 23:35:19 +07:00
Un1matr1x
3a34593359 The same procedure as last year, Miss sophie?
Same procedure as every year, James.
2012-12-31 12:44:31 +01:00
Uli Schlachter
d9d6a2228c Fix OOT builds with swig files in source dir
Normally, when the Makefile calls swig, the resulting files end up in the build
directory. However, when the files are pre-generated (e.g. as in the znc 1.0
tarball) and an out of tree build is used, they are in the source directory and
installation fails.

Thanks to Kinji for reporting this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-12-26 14:12:58 +01:00
Alexey Sokolov
da5c6b6a8b Bump SWIG req to 2.0.8, remove our hacks around old SWIG. 2012-11-07 02:02:22 +07:00
Uli Schlachter
d0b7df5ec4 Look! Shiny butterflies everywhere!
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-11-01 15:53:07 +01:00
Uli Schlachter
8a4cd20efb modperl: Add dependency information for modperl.o
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-11-01 15:48:39 +01:00
Uli Schlachter
5ea266a199 Fix parallel building of modperl
The symptoms looked like this:

    Packing man page znc-buildmod.1.gz...
    Generating ZNC API for Perl...
    Generating ZNC API for Perl...
    Generating ZNC API for Perl...
    Linking znc...

The reason was that the old rule was executed multiple times in parallel. See
the following commit for more information:

    commit 84ec49780e
    Author: Uli Schlachter <psychon@znc.in>
    Date:   Sun Sep 23 12:03:22 2012 +0200

        Get rid of the modpythin jobhack

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-11-01 15:23:47 +01:00
Alexey Sokolov
d6c0f44e51 Hide one more warning from modperl 2012-10-20 19:09:27 +07:00
Alexey Sokolov
a6ec0c9e55 Don't fail compilation of modperl/python if they are first 2012-10-06 21:10:55 +07:00
Uli Schlachter
9c14a8603c Fix modperl re-building
Make was always rebuilding modperl/ZNC.so because the Makefile was actually
describing a file modperl/ZNC."so". Fix this by getting rid of the unnecessary
pair of quotes.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-09-23 11:18:53 +02:00
Alexey Sokolov
dbc3ca2574 Fix build of modperl
Thanks to Han` for reporting it
2012-09-07 09:21:04 +07:00
Alexey Sokolov
a9a869488a Fuck those makefiles
It tries to run SWIG for modpython several times simultaneously.
Just force modules to be built in 1 thread for now if modpython is going
to be built.

Makefiles should be thrown away.

Also don't show warning about unused perl, fix #219
2012-09-07 00:44:20 +07:00
Alexey Sokolov
f80ae4aad6 Various fixes of modperl and modpython.
Including cygwin support #216
2012-08-27 00:40:11 +07:00
Alexey Sokolov
d56c443715 Perl+python: add arguments help text. 2012-08-26 10:17:50 +07:00
Alexey Sokolov
628f3c8ec1 Partially fix modperl build under cygwin. 2012-08-20 00:51:36 +07:00
Alexey Sokolov
cc52a7d2be Add several fixed files for swig.
Workaround for broken swig, which allows old swig versions to work too.

These files should be removed when fixed swig is released.

Thanks to Juvenal for suggestion.
2012-08-15 01:42:46 +07:00
Alexey Sokolov
6b550f214d Fix logic of modperl Makefile 2012-08-15 00:39:55 +07:00
Alexey Sokolov
9fd4149d73 Fix modperl and modpython compilation.
Also fix few string-related inconsistences.
2012-08-15 00:38:23 +07:00
Alexey Sokolov
7a4aa744fe Don't generate mod[perl|python].tar.bz2 2012-08-13 20:40:05 +07:00
Alexey Sokolov
7e8f281ee5 Add vector<CListener*> to modperl/modpython. 2012-08-12 22:34:02 +07:00
Alexey Sokolov
c050356a24 Generate modperl.tar.bz2 2012-08-08 01:29:18 +07:00
Alexey Sokolov
538aa77399 Modperl: read values from MCString #93
Example:
my $x = $self->GetNetwork->GetIRCSock->GetISupport;
$x->get("CHANMODES")

No iterating through all values though :(
2012-07-28 21:25:28 +07:00
Alexey Sokolov
3145c5054c Allow perl modules to be loaded not by modperl 2012-07-28 19:35:22 +07:00
Alexey Sokolov
62c9ac1a0b using in headers is evil :( 2012-07-26 20:46:11 +07:00
Alexey Sokolov
a131127770 Show commit id in version for git builds. 2012-07-21 23:27:53 +07:00
Kyle Fuller
5995fc530e Remove references to CAres from mod{python,perl} 2012-02-28 14:16:53 +00:00
Alexey Sokolov
be81853b24 Depend on changes of headers too, not only sources. 2012-02-05 17:24:14 +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
00e26c8dbc Perl: fix several methods to return perl stuff instead of pointers. 2012-01-23 04:09:24 +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
7ca8aa96a2 Add missing dependency to modperl. 2012-01-01 19:47:04 +07:00
Un1matr1x
73270ff023 Welcome in 2012 2012-01-01 09:30:19 +01:00
Alexey Sokolov
8bb7ea5370 Rework modperl to better integrate with perl.
Now it supports global and network modules.
Fixes github issue #82
2011-12-29 11:35:25 +07:00
Uli Schlachter
962c10795d Disable some more warnings on mod{perl,python}
It seems to me like swig is trying to trigger every warning that exists...

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-10-30 13:37:11 +01:00
Alexey Sokolov
f4097e6fd5 Separate compilation and linking for modules.
To gain more benefits from distcc.
2011-10-30 02:15:26 +07:00
Alexey Sokolov
0f0591b648 Fscking perl... This fixes modperl's compilation. 2011-10-04 10:29:55 +07:00
Alexey Sokolov
e354c24ac1 Move ZNC headers into own directory.
Yes, this breaks backwards compatibility, so what?
It's already broken with network stuff anyway.
2011-09-23 03:31:58 +07:00
Kyle Fuller
0b1627c529 Make all the modules support networks 2011-08-24 19:07:32 +01:00
Kyle Fuller
f44f307b24 Add a config writer 2011-08-21 13:40:14 +01:00