Commit Graph

3045 Commits

Author SHA1 Message Date
Uli Schlachter 8ffab186b4 CModule::OnMode(): Fix a stupid NULL pointer dereference
When joining a channel, OnMode() (via SetModes()) was called with pOpNick ==
NULL. This bad pointer was turned into a reference and given to modules.

This bug exists since 2008 when the OnMode() module call was added. It wasn't
noticed before because apparently no module used this CNick argument before.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-12-06 17:28:05 +01:00
Alexey Sokolov 2b51222245 Show example timezone in webadmin 2012-12-04 09:24:47 +07:00
Alexey Sokolov c06f95b452 Webadmin: Show instructions on how to use networks in Add Network too
not only in Edit Network
2012-12-02 19:28:02 +07:00
Alexey Sokolov cf8925c930 Webadmin: don't modify listeners if loaded as user mod
Thanks to TheLordOfTime
2012-12-01 14:28:07 +07:00
Alexey Sokolov 833e63fb64 Allow loading webadmin as user module. 2012-12-01 08:55:41 +07:00
Alexey Sokolov a095f49f95 Merge pull request #258 from Lavode/master
Fixed minor typo in webadmin module.
2012-11-28 05:52:27 -08:00
Michael Senn f70f1086fd Fixed minor typo in webadmin module. 2012-11-28 13:37:31 +01:00
Alexey Sokolov 1c8485cebe Update server-time to new specs with ISO 8601 2012-11-24 01:45:36 +07:00
Alexey Sokolov 4036114975 Add CModule::ExpandString()
It chooses which ExpandString() to call, of user or of network.
2012-11-23 21:40:30 +07:00
Daniel Wallace f941ee5870 remove pModule from Ismatch 2012-11-23 08:17:52 -05:00
Daniel Wallace 77e4ae5408 include Module when instantiating CAttachMatch
This allows for the use of stuff like %nick% through ExpandString in the
search feature.
2012-11-22 18:03:43 -05:00
Daniel Wallace addd047465 add string searching for autoattach 2012-11-21 23:03:27 -05:00
Alexey Sokolov 978e3b7832 Fix a typo and user modes.
Thanks to KindOne for noticing it.
2012-11-22 01:32:58 +07:00
Alexey Sokolov 94cce5ae38 Update Csocket, fix #254 2012-11-21 00:53:39 +07:00
Alexey Sokolov be77054136 Fix spelling error in blockuser.
Thanks to the-me (Patrick Matthäi) for the patch.
2012-11-15 21:13:22 +07:00
Alexey Sokolov 89f586d173 Merge commit 'refs/pull/188/head' of github.com:znc/znc
Conflicts:
	modules/watch.cpp
2012-11-08 20:28:43 +07:00
Alexey Sokolov a212f08129 Merge commit 'refs/pull/232/head' of github.com:znc/znc 2012-11-08 20:09:48 +07:00
Alexey Sokolov bf31091353 Merge commit 'refs/pull/231/head' of github.com:znc/znc 2012-11-07 22:12:12 +07:00
Alexey Sokolov f54d4d443f Merge commit 'refs/pull/206/head' of github.com:znc/znc 2012-11-07 21:40:37 +07:00
Alexey Sokolov f174d49e81 Update travis conf to install SWIG 2.0.8 2012-11-07 02:10:32 +07: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
Alexey Sokolov 071801a65d Increase the version number to 1.1 2012-11-07 01:33:45 +07:00
Alexey Sokolov 73b2daf24d Increase the version number to 1.0 znc-1.0 2012-11-06 22:41:24 +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 3b10202143 Fix cyrusauth to be loadable again. #246
When it was renamed from saslauth, compilation flags were not renamed...
2012-11-01 20:55:33 +07:00
Alexey Sokolov 4a33ec57a2 Add configuration for travis-ci 2012-10-30 23:41:20 +07:00
Alexey Sokolov d543728215 Fix installing without root when systemd exists.
Try to detect path to systemd units only when
--with-systemdsystemunitdir is used without the path.

If this option isn't specified at all, no need to install systemd file.

Thanks to n0kS for reporting this.
2012-10-29 01:39:24 +07:00
Alexey Sokolov d6c0f44e51 Hide one more warning from modperl 2012-10-20 19:09:27 +07:00
Alexey Sokolov a0e9977264 Rename control back to controlpanel...
I shouldn't do this during beta.
2012-10-19 22:51:33 +07:00
Alexey Sokolov b0a2a58155 Fix error message at webadmin #239 2012-10-19 22:29:28 +07:00
Alexey Sokolov 4f1fd1f6db Rename controlpanel to control, fix #240
It's just a shorter name, and hopefully still not as confusing as old
"admin".

Also unrelated change: fix case of few output lines during startup.
2012-10-19 22:14:25 +07:00
Alexey Sokolov ed83ac632d Hide current impl of server-time to znc.in/ namespace
The specs are going to change to support leap seconds properly,
so ZNC implementation will need to be updated.
But it would be too big change now, when 1.0-beta is out.

So support for this capability is delayed for 1.2
2012-10-16 19:50:16 +07:00
Alexey Sokolov 33ba89282e Fix compilation of modpython
Thanks to gtmanfred, who reported it
2012-10-12 08:29:38 +07:00
Alexey Sokolov 44d8aaa13a Improve message in ./configure about SWIG 2012-10-07 09:06:26 +07:00
Alexey Sokolov a6ec0c9e55 Don't fail compilation of modperl/python if they are first 2012-10-06 21:10:55 +07:00
Alexey Sokolov a85735a641 Add a command for listing all users' networks.
Fix #224
2012-10-02 19:59:07 +07:00
Alexey Sokolov 0577894d26 Warn if mod dir of old network contains files when moving. 2012-09-30 20:44:24 +07:00
Alexey Sokolov b5102355cb Add a way to move networks between users.
It should help for migrating old multiuser setup to new multinetwork
one.

Fix #217
2012-09-30 16:23:50 +07:00
Alexey Sokolov 5e688f0dea Merge branch 'master' of github.com:znc/znc 2012-09-26 01:46:26 +07:00
Alexey Sokolov d9ec39d818 Clarify in --makeconf how network name should look like. 2012-09-26 01:45:38 +07:00
Uli Schlachter 84ec49780e Get rid of the modpythin jobhack
This exists to fix a problem where the python swig API was generated multiple
times in parallel with "make -j3". This problems turns out to be due to the
multiple target rule that this commit removes. Such a rule doesn't mean "this
commands generate multiple files at once" but means "you can use this command
for each of these targets".

Fix this by including Makefile.gen instead of calling it in its own make
process. That way we don't need this "meta rule" which just calls another
Makefile but can use the "real" rules immediately.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-09-23 12:03:22 +02: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
Uli Schlachter afb4830057 Fix configure with -Werror=unused-variable
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-09-23 11:14:20 +02:00
Alexey Sokolov 9b2898f603 Implement setting "Max number of networks" for user.
Fix #226
2012-09-20 01:24:47 +07:00
Alexey Sokolov 50e6c1bfab Fix dh-blowfish in sasl module and #230
Idea for the patch by psychon
2012-09-19 08:38:09 +07:00
Alexey Sokolov 48aa157024 Also I forgot to update wiki link. 2012-09-16 19:19:03 +07:00
Alexey Sokolov 9edcc716d5 *admin was renamed to controlpanel.
But znc --makeconf and config writer didn't know that.
2012-09-16 18:26:32 +07:00
Jyzee 73f794c455 NickServ module : Make NickServ nickname configurable.
On some networks, NickServ is named differently and this makes NickServ module unable to auto-ident.
This patch enables configuration of NickServ nickname to make it works on such IRC networks.
2012-09-13 05:15:49 +02:00