Commit Graph

1988 Commits

Author SHA1 Message Date
psychon 6364c3becd Create a branch based on 0.090 for some bugfixes
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/branches/0.090_fixes@2049 726aef4b-f618-498e-8847-2d620e286838
2010-07-02 19:54:23 +00:00
psychon 8cddb05776 Tag znc 0.090
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/tags/REL_0.090@2008 726aef4b-f618-498e-8847-2d620e286838
2010-06-06 07:24:36 +00:00
psychon 43ece72fbd Increase the version number to 0.090
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2007 726aef4b-f618-498e-8847-2d620e286838
znc-0.090
2010-06-06 07:23:52 +00:00
cflakes 6b9474abcb Fixed a source code comment. Patch by DGandalf. Thanks!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2006 726aef4b-f618-498e-8847-2d620e286838
2010-05-29 20:11:48 +00:00
cflakes df48322436 Fixed display error with tables that extend further than they are supposed to due to long unbreakable contents.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2005 726aef4b-f618-498e-8847-2d620e286838
2010-05-29 19:44:25 +00:00
cflakes 796d4e1393 Removed unnecessary argument from admin.cpp. LoadModule(..., bFake = false) is the default.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2004 726aef4b-f618-498e-8847-2d620e286838
2010-05-22 10:34:11 +00:00
cflakes 7d8a3041bf Fixed web mod traffic being counted twice. Issue identified by psychon.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2003 726aef4b-f618-498e-8847-2d620e286838
2010-05-22 10:32:59 +00:00
psychon 4fe431de17 Remove useless help page on webskins
Didn't do anything and certainly wasn't helpful at all.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2002 726aef4b-f618-498e-8847-2d620e286838
2010-05-21 16:30:54 +00:00
psychon 56d4ce8839 Print a warning if --enable-run-from-source is missing
If znc was compiled with "--disable-run-from-source" it will check if a file
called "znc-uninstalled.pc" exists in the directory the znc binary is in. If
there is such a file, it will print a warning that "--enable-run-from-source" is
most likely missing.

Idea partly by SilverLeo, thanks.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2001 726aef4b-f618-498e-8847-2d620e286838
2010-05-20 20:24:30 +00:00
psychon 4e076a4b6e modules/Makefile: Don't try to install www/
That directory was removed in r1997 so trying to install it might be rather
tricky (in fact, it failed and caused 'make install' to abort).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2000 726aef4b-f618-498e-8847-2d620e286838
2010-05-18 16:16:04 +00:00
psychon 86e55dc20e Add DarthGandalf to AUTHORS
He's been a great help for some time already and has contributed
lots of patches and ideas.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1999 726aef4b-f618-498e-8847-2d620e286838
2010-05-18 16:14:23 +00:00
psychon 91f363d91c autoop: Don't abort ongoing exchange on new joins
When one joined to a channel after someone else's autoop already sent a
challenge, the other autoop will forget it sent a challange and happily generate
a new one. This might cause bogous "incorrect password" messages.

Patch by DarthGandalf, bug found by SilverLeo (I think...).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1998 726aef4b-f618-498e-8847-2d620e286838
2010-05-17 13:31:17 +00:00
psychon ec9c495a93 Move module's templates to their data dir
Instead of having the template files and images in /usr/share/znc/www/<mod>/,
modules now get to use /usr/share/znc/<mod>/tmpl/ and files/ for this purpose.
This puts those directories for static data to good use again and might even fix
some bugs (after all, the code for that dir is older and more tested than the
new code for www/).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1997 726aef4b-f618-498e-8847-2d620e286838
2010-05-17 13:25:17 +00:00
psychon b1339657ef Move the definition of _SKINDIR_ elsewhere
It's only used in WebModules.cpp and in contrast to the other #defines from
main.h, this one is not set in configure by default.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1996 726aef4b-f618-498e-8847-2d620e286838
2010-05-17 12:56:23 +00:00
psychon 7b0526b690 Remove default argument for CListener's constructor
It's not used and needs to go. Now!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1995 726aef4b-f618-498e-8847-2d620e286838
2010-05-17 12:55:17 +00:00
cflakes 176d44339e Added a "-force" mode to the charset module,
so it's useful for even more people.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1994 726aef4b-f618-498e-8847-2d620e286838
2010-05-16 20:28:34 +00:00
psychon de82840967 Fix out-of-tree builds
It was looking for the webskins directory in the wrong spot.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1993 726aef4b-f618-498e-8847-2d620e286838
2010-05-16 13:15:10 +00:00
cflakes d70ab091d1 Fixed /znc addport arguments in /znc help.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1992 726aef4b-f618-498e-8847-2d620e286838
2010-05-16 10:20:49 +00:00
cflakes ad8f0be449 Improved looks of /znc listports output.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1991 726aef4b-f618-498e-8847-2d620e286838
2010-05-15 22:37:39 +00:00
cflakes a08a64a3dc Add "setting"/argument for adding web and IRC only ports via /znc addport.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1990 726aef4b-f618-498e-8847-2d620e286838
2010-05-15 22:33:19 +00:00
cflakes f46fc5841d Improved perform module description.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1989 726aef4b-f618-498e-8847-2d620e286838
2010-05-15 22:13:10 +00:00
cflakes 63762e7735 Moved isRoot check to a place before the code for --makeconf.
Keeps users from doing --makeconf as root and then wondering why
ZNC complains when they try to start it up.
--makepass and --makepem still work as root.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1988 726aef4b-f618-498e-8847-2d620e286838
2010-05-15 18:00:34 +00:00
cflakes 26ea4a6cf8 <psychon> someone should commit the one-liner which makes the CListener created by webadmin always be CListener::ACCEPT_HTTP
<psychon> since that's the old behavior anyway


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1987 726aef4b-f618-498e-8847-2d620e286838
2010-05-14 09:00:46 +00:00
cflakes c3b6216a36 Made the lastseen table look better by applying more grammarz.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1986 726aef4b-f618-498e-8847-2d620e286838
2010-05-14 08:59:19 +00:00
cflakes f95fb31525 Added some debug output to the charset module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1985 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 22:58:32 +00:00
psychon 1fcd6a5dee webadmin: Automatically convert module arguments
This patch makes webadmin automatically open its own listening port if it gets
a port number on the command line. It also handles -noircport etc. Basically, it
handles everything. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1984 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 19:49:52 +00:00
psychon dda647dbd7 Better error message if pkg-config is not found
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1983 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 18:44:25 +00:00
psychon 10d1fa41a9 Move module templates to DATADIR
The file hierarchy standard wants that!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1982 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 16:51:17 +00:00
psychon 8e8463092b WebModules: Make PAGE_DONE imply Close()
When one now finishes a web request with PAGE_DONE, the code actively calls
Close(CLT_AFTERWRITE) which one previously had to call explicitly. This means
there is finally a difference between PAGE_DONE and PAGE_DEFERRED. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1981 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 15:54:06 +00:00
psychon c70d5da7f3 Remove some empty directory
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1980 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 13:51:58 +00:00
psychon 0d8b146059 Some love for the man page
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1979 726aef4b-f618-498e-8847-2d620e286838
2010-05-10 20:16:04 +00:00
psychon 5c713f5d2d Notes: Add some missing returns
When deleting a note via /#-<key> or listening the available notes via /#?, the
code somehow managed to add a note.

Also, this fixes checking for empty notes.

Found by tomaw, thanks.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1978 726aef4b-f618-498e-8847-2d620e286838
2010-05-10 18:19:11 +00:00
psychon ea269948e4 Add and use new config option "Listener"
This is what each option does:

Listen on ipv4 and ipv6: Listener, Listen6
Listen on ipv4 only:     Listener4, Listen4, Listen
Listen on ipv6 only:     Listener6
Removed:     ListenPort (not used since at least 0.047)

(ZNC will only ever use Listener* by itself)

This was done to preserve the old meaning of "Listen" and "Listen6", so that
user configs don't break after update.

Thanks to DarthGandalf for thinking about and implementing this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1977 726aef4b-f618-498e-8847-2d620e286838
2010-05-10 17:45:15 +00:00
cflakes b0bc22128e Moved port/listener modifying *status commands to their own
method (UserPortCommand). This removes some previous dupe
code (HI BRIAN) and prepares for web only/IRC only port
support.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1976 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 20:22:23 +00:00
cflakes e9f8a06476 Charset module:
- Added some comments
- Fixed some places where iconv_close may have been called two times on the same
handle which apparently crashed some implementations. Woops. Thanks to x-demon
for noticing.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1975 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 20:13:19 +00:00
cflakes 5e58456c84 Make webadmin show whether a Listener/port accepts IRC and/or HTTP connections.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1974 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 19:08:41 +00:00
cflakes dae195ebb0 Partly undo psychon's last commit in favor of just removing all the
setter methods. Suggested by psychon himself.
The second and more important part of this patch adds an optional
web_only/irc_only token to the Listen config setting. Using this,
you can make Listen ports listen for IRC or Web/HTTP connections
only (or for both if you don't add any of the _only tokens).
Examples:
Listen = irc_only 3000
Listen4 = web_only +3001
Listen6 = ::1 6000
and so on.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1973 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 18:55:13 +00:00
psychon 4d7690cff9 CListener: Deny changes to settings after setup
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1972 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 18:27:11 +00:00
cflakes 4947a6441f Use a better error message for browsers connecting to IRC only listener ports.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1971 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 17:51:06 +00:00
silverleo 8d432f29a3 Fixed modtcl result fetching from the interpreter.
Tcl 8.6 no longer supports accessing the result field directly,
so we now use the public getter.

Thanks to flakes for finding this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1970 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 17:24:02 +00:00
psychon 8c2ee6cf82 configure: Check earlier for dlopen()
Linking against libcrypto.a apparently needs libdl, so we should check for this
before trying to find openssl's libs.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1969 726aef4b-f618-498e-8847-2d620e286838
2010-05-04 19:27:58 +00:00
psychon 83bedc10b0 Some debug output less
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1968 726aef4b-f618-498e-8847-2d620e286838
2010-05-03 17:53:47 +00:00
psychon dd8dabdfd1 WebMods: Calculate the module's web path correctly
Until now, the code checked for <moddir>/www/<mod name> and just used
./modules/www/<mod name> if the other dir didn't exist.

Now we calculate the correct path from the module's shared object's path, which
is the correct thing to do.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1967 726aef4b-f618-498e-8847-2d620e286838
2010-05-03 13:49:45 +00:00
psychon 5631a20499 Some more fun with tabs
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1966 726aef4b-f618-498e-8847-2d620e286838
2010-05-02 08:36:57 +00:00
psychon 00d0a1f01a Some more tabs and cleanup
There was some code in FileUtils.h which was added in r232 (in 2005) to znc.
It was already commented out back then which means it is commented out for
5 years already. I'm 99% sure we can safely remove that. :P


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1965 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 20:36:42 +00:00
psychon 586ed9802e Some more tabs gone
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1964 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 20:26:30 +00:00
psychon eee34d359b Change a bunch of tabs into spaces
At the beginning of lines, one uses tabs for indenting. In the middle of the
line, you use spaces. If you want two different lines to line up with each
other, you start them with the same number of tabs and use spaces for the rest
of the indenting in the "other" line.

Really, that's how one does it!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1963 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 20:15:01 +00:00
cflakes 729299eb67 Refuse harder and print a debug warning in case some bad code
tries to write invalid lines to the config file.
Patch by DGandalf, thanks.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1962 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 18:47:52 +00:00
cflakes 6fbba375b8 We now trim all leading and trailing spaces from parameter values passed
into webadmin/webmods. This makes sense in almost every case, be it that
users accidentally hit the space bar or try to outsmart ZNC by entering
nothing but spaces into a textbox.
By doing the latter, it was possible to trick ZNC into not starting up
again. Thanks to Redirect_ for bringing this to our attention. Another
commit that will fix the underlying problem while writing to the config
file will follow.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1961 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 18:36:05 +00:00
psychon cc6e59eacf Add and use CListener::AcceptType
This enum let's one control what kind of connections a listener will allow.
HTTP requests to an IRC-only port and IRC requests to a HTTP-only port will be
booted off.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1960 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 14:33:15 +00:00