Commit Graph

895 Commits

Author SHA1 Message Date
Kyle Fuller 7391a5cc68 Remove notes on the GENERATE command in the cert module 2012-01-01 14:48:58 +01:00
Uli Schlachter aa9f2935b4 route_replies: Handle raw 482
lahwran reported the following message from *route_replies and also figured out
which message we failed to handle, thanks!

<*route_replies> This module hit a timeout which is possibly a bug.
<*route_replies> To disable this message, do "/msg *route_replies silent yes"
<*route_replies> Last request: MODE #somesecretchannel I

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-01-01 14:48:58 +01:00
Alexey Sokolov 946ff52dad Change the order of -I directives in Makefile.
If ZNC was already installed, it had its headers somewhere.
The chances are that something else can be installed at the same place,
including some ZNC's dependency	whose include dir would be included to
CXXFLAGS. Another possibility of including that dir is triggered when
using FreeBSD - ./configure explicitly adds -I/usr/local/include in that
case.

And so we get a directory with old ZNC headers included to CXXFLAGS
before our new shiny ./include.

With their order changed, the proper headers are included now.

Thanks to those who repored the issue, thanks to PsWii60 for helping to
track it down, thanks to my parents for creating me and therefore
enabling me to fix it, and to many other people.

Conflicts:

	Makefile.in
	modules/Makefile.in
2012-01-01 14:48:58 +01:00
Uli Schlachter 094d6f358a Don't use "mkdir" during install
lahwran just showed up on irc and told us that he installed znc, but znc failed
to find any modules. The reason for this was his umask 077 which means that
"make install" installed stuff so that only root can access it.

The solution is do use "install -d" since that makes sure to ignore the
currently set umask.

However, google finds results which say that "install -d" might mess with stuff
of pre-existing directories when it shouldn't, so we must first test if the
directory already exists before calling install. Obviously, this makes our
Makefile a lot more readable. :-(

I didn't have time to test this properly, so stuff might break.

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

Conflicts:

	modules/Makefile.in
2012-01-01 14:48:58 +01:00
Kyle Fuller 6ed5040dd9 identfile: Improve the debug messages
The new debug messages allow us to see when the identfile is unlocked

Conflicts:

	modules/identfile.cpp
2012-01-01 14:48:58 +01:00
Alexey Sokolov 292f921cad Improve admin module description. 2012-01-01 14:44:56 +01:00
Alexey Sokolov d891b5489d Fscking perl... This fixes modperl's compilation. 2012-01-01 14:44:56 +01:00
Toon Schoenmakers a6e5225e8a This avoids your irc windows being filled with away stuff
Downside of antiidle is that because it messages yourself internally
the irc server will send messages to you when you're marked as away.
This can end up being really annoying, so those messages are blocked
with these changes.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
2012-01-01 14:44:55 +01:00
Alexey Sokolov dd57c350f4 Move autocycle module to extra.
Modern/decent networks have services anyway, and for registered channels
this module is useless. Also it tends to fight ChanServ in case if
ChanServ joins/parts the channel to remove ops.

Users of deprecated ne^W^Wnetworks without services can use it from extra.
2012-01-01 14:18:47 +01:00
Uli Schlachter ed24d7fc89 Drop @DEFS@ from the build system
This will only ever be set to -DHAVE_CONFIG_H. However, we shouldn't give this
flag to other people's code (e.g. through znc-config). Since we don't need it,
it's best to just drop it completely.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-01-01 14:17:30 +01:00
Alexey Sokolov 11508aa72e Fix crash in bouncedcc module.
It happens when DCC RESUME is received.
Affected ZNC versions: 0.200, 0.202.

Thanks to howeyc for reporting this and providing the patch.
2012-01-01 00:47:01 +07:00
Alexey Sokolov dd3a2b3897 Install .py files along with .pyc
(cherry picked from commit 5e73af632a)
2011-09-13 22:13:17 +07:00
Kyle Fuller 7354564df3 Don't timeout bouncedcc connections, inactive bounced DCC chat's would be dropped otherwise 2011-09-13 09:38:18 +02:00
Uli Schlachter 13dbd6698c admin: Fix getchan {inconfig,keepbuffer,detached}
Instead of giving a useful result, they returned their result by sometimes
omitting the first character of the option name. Whoops.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-13 09:38:09 +02:00
Uli Schlachter fe05574f24 autocycle: Only cycle once in 15 seconds
This should stop all fights against ChanServ. Please note that nothing will
happen if we are the only one in the channel after 15 secs since this module
only checks if it needs to do something when someone leaves a channel.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-13 09:36:59 +02:00
Uli Schlachter 891d7a3e3a route_replies: Improve the timeout message
Fixes #57.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-13 09:36:13 +02:00
Kyle Fuller 6aa31689ac [cert module] Allow \r\n to be inside a certificate when uploading with the web interface.
Thanks to Robby for reporting
2011-08-16 22:19:43 +01:00
Kyle Fuller 74919a8759 Fix uploading a certificate in the web interface for the cert module 2011-08-16 20:38:51 +01:00
Uli Schlachter 8f53d3fbb0 Fix modp{erl,ython} installation
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-06 10:43:39 +02:00
Kyle Fuller e86ff3219d Fix module data for extra/ modules for real 2011-08-05 22:16:21 +01:00
Uli Schlachter cb6798d36f Fix module data for extra/ modules
No module in extra/ comes with any data currently, so this was tested by moving
perform to extra/. The install is untested.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-05 15:19:09 +02:00
Alexey Sokolov ea58912093 Hide every symbol except ZNCModInfo from modules.
This means that now it's possible to have the same class names in
different modules, which reduces chances of weird errors.

Thanks to mclc for noticing this.
2011-07-15 22:56:47 +07:00
Alexey Sokolov 7ea5e1fd4c Remove fixfreenode module.
Old CAPAB method doesn't work with freenode now, and new CAP method is
handled by CAP support in the core.
2011-07-06 00:52:18 +07:00
Alexey Sokolov d683aea48d Merge branch 'modinfo' 2011-06-11 18:32:09 +07:00
Alexey Sokolov f7c4f5459c Support wiki pages names in python modules.
Also this fixes showing python modules in available modules list.
2011-06-11 18:28:46 +07:00
Alexey Sokolov 79e78608b3 Support wiki pages names for perl modules. 2011-06-11 18:21:06 +07:00
Alexey Sokolov 262216731b Add link to wiki page from any nonextra module. 2011-06-11 18:09:56 +07:00
Alexey Sokolov 0c840f922d Modules can now provide its wiki page name.
It's shown on webadmin as a link.
2011-06-11 17:46:37 +07:00
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