Commit Graph

3331 Commits

Author SHA1 Message Date
Alexey Sokolov e11eb08f8e Travis: add ASan and TSan builds 2014-03-09 23:11:47 +00:00
Alexey Sokolov 5c725afabd Travis: change efnet server to a working one 2014-03-08 19:47:58 +00:00
Alexey Sokolov 6295cea25f Don't ask for listen host in --makeconf
It confuses people too much.
Who wants ZNC to listen on localhost, may change settings immediately
after, via webadmin or /msg *status
2014-03-08 19:08:36 +00:00
Alexey Sokolov 9f95a8f944 Merge pull request #502 from jpnurmi/send-buffer
Add CChan::SendBuffer(client, buffer) overload
2014-03-06 22:40:23 +00:00
J-P Nurmi 2b0c47aa8e Add CChan::SendBuffer(client, buffer) overload
This allows interested parties eg. modules to to send a partial
buffer playback without reinventing the wheel.
2014-03-04 08:27:10 +01:00
Alexey Sokolov a8e7b908c0 Merge pull request #494 from jpnurmi/client-raw-hook
Add module hooks for raw client and server messages
2014-03-03 23:46:39 +00:00
J-P Nurmi 76bfa99dd0 Add module hooks for raw client and server messages 2014-03-04 00:24:15 +01:00
Alexey Sokolov 77652768c6 Merge pull request #493 from jpnurmi/server-time
Promote server-time formatting to Utils
2014-03-03 22:44:49 +00:00
Alexey Sokolov 7d2f74acf4 Merge pull request #500 from jpnurmi/find-chans
Add CIRCNetwork::FindChans()
2014-03-03 22:38:41 +00:00
Alexey Sokolov 5237e89bc3 Fix message tags parser and add test of it 2014-03-03 22:35:56 +00:00
Alexey Sokolov 0696a6ed23 Cleanup old tests (pre-gtest) 2014-03-03 21:38:18 +00:00
Alexey Sokolov 4b446cdf5a Merge pull request #501 from jpnurmi/message-tags
Add CUtils::Get/SetMessageTags()
2014-03-02 23:22:29 +00:00
J-P Nurmi ed25ca21e6 Add CIRCNetwork::FindChans() 2014-03-02 23:24:34 +01:00
J-P Nurmi 5f8f747704 Add CUtils::Get/SetMessageTags() 2014-03-02 23:18:39 +01:00
J-P Nurmi bbd84a06bf Promote server-time formatting to Utils 2014-03-02 02:01:40 +01:00
Uli Schlachter 0a0be7710f configure: Fix --disable-charset
Somehow I ended up only testing the automatic detection and the error message
from --enable-charset. I totally forgot that --disable-charset should skip the
whole check.

Thanks to Robby for reporting this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-01 16:57:09 +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 40536fbf00 Merge pull request #498 from psychon/configure-flag-for-charset
configure: Add --enable/disable-charset
2014-02-25 20:09:54 +00:00
Uli Schlachter a074c23e39 configure: Add --enable/disable-charset
This override the auto detection. If --enable-charset is given, but icu can't be
found, configure will error out.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-02-25 17:13:01 +01:00
Alexey Sokolov ef533a4283 Merge pull request #496 from psychon/config-reasoning
configure: Give a reason for disabled features
2014-02-25 00:21:16 +00:00
Uli Schlachter 4676fa0a7f configure: Give a reason for disabled features
This adds a short reason to the summary at the end of configure (for options
where it makes sense, e.g. not debug or ipv6).

Example:

  charset:      no (icu-uc not found via pkg-config)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-02-24 18:27:07 +01:00
Alexey Sokolov 97207113d0 webadmin: default uriprefix is "/" 2014-02-17 00:58:37 +00:00
Alexey Sokolov a83c8239cf Fix znc-buildmod
It failed to build some modules...

Thanks to kay45 for reporting this
2014-02-17 00:48:42 +00:00
Alexey Sokolov 1c8e9b9355 Merge pull request #485 from uu1101/uriprefix
Allow serving the web interface under a subpath
Fix #480
Fix #138
2014-02-17 00:44:37 +00:00
uu1101 26a9d73cba Set favicon URL to respect the prefix
When not specified, browsers tend to send favicon request to
/favicon.ico. This commit tells the browsers to look for it under the
URIPrefix.
2014-02-16 12:45:10 +01:00
uu1101 f6a881eeb2 Redirect to URIPrefix for paths outside the prefix 2014-02-16 12:45:10 +01:00
uu1101 c0974d9910 Don't support relative redirects 2014-02-16 12:45:10 +01:00
uu1101 46975cd9f1 Use absolute URIs in Redirect
Although most browsers seem to accept relative redirects, it is not
allowed by HTTP/1.1.

This commit changes relative URIs to absolute ones when redirecting.
2014-02-16 12:45:10 +01:00
uu1101 4376b373d8 Prepend URIPrefix to web interface links
Prefix links in templates with URIPrefix and add the input field to the
Listener editor.

The URIPrefix is provided as a top-level template variable. All URIs
have been changed to have the prefix prepended.
2014-02-16 12:45:10 +01:00
uu1101 d796fc8312 Add prefix on redirects and strip it on requests 2014-02-16 12:45:09 +01:00
uu1101 88c85b0396 Add URIPrefix listener option 2014-02-16 12:45:09 +01:00
uu1101 d3ddb9b69d The Listener of a RealListener is never NULL 2014-02-15 14:57:33 +01:00
uu1101 7a9ce630ef Add CString::StartsWith and CString::EndsWith 2014-02-15 12:41:54 +01:00
Alexey Sokolov bdc3bfe918 Merge commit 'refs/pull/488/head' of github.com:znc/znc 2014-02-10 20:58:11 +00:00
Alexey Sokolov 62cd47424f Merge pull request #486 from dgw/gitignore-versioncpp
Add version.cpp to .gitignore
2014-02-10 20:42:29 +00:00
dgw f33212b902 Add new columns to listsockets tmpl 2014-02-10 23:25:31 +04:00
dgw b98ae214b2 Add traffic stats to listsockets webadmin table
Table is not displaying, however. Odd.
2014-02-10 21:52:18 +04:00
dgw 36202ca890 add src/version.cpp to gitignore 2014-02-10 21:04:02 +04:00
dgw f244d7ab45 Add socket traffic stats to listsockets response
Not yet added to Web interface though.
2014-02-10 20:53:45 +04:00
Alexey Sokolov 591b95ed54 MacOS X: require SWIG 2.0.12
To fix build of modpython
2014-02-09 23:46:14 +00:00
Alexey Sokolov b7592008af Merge pull request #484 from KiNgMaR/singleton
Allow more control over CZNC singleton
2014-02-08 18:03:06 +00:00
Ingmar Runge ec6607ccf5 Use CZNC::DestroyInstance(). 2014-02-08 01:32:12 +01:00
Ingmar Runge 4c505946ac Patch ZNC core for more control over singleton... 2014-02-08 01:25:28 +01:00
Alexey Sokolov 17d97bba6b Merge pull request #482 from KiNgMaR/win32-file-move
work around Win32 rename() issue using native API
2014-02-07 20:48:08 +00:00
Alexey Sokolov 17b1b3c0f6 Merge pull request #481 from KiNgMaR/squash-some-warnings
squash some compiler warnings
2014-02-07 20:23:18 +00:00
Alexey Sokolov 200c5da15f Merge pull request #483 from KiNgMaR/issue464
Possible fix for issue #464
2014-02-06 22:37:38 +00:00
Ingmar Runge 13040d9c72 Fix AddServerThrottle. 2014-02-06 23:36:01 +01:00
Ingmar Runge 39468f6aa2 certauth: improve const correctness 2014-02-06 18:46:07 +01:00
Ingmar Runge f4a7386ad4 certauth: case insensitive hex key comparison
As noted in issue 464, comparing the hex representation of the public
key fingerprint should be case insensitive.
2014-02-06 18:42:22 +01:00
Ingmar Runge d80e989dba work around Win32 rename() issue using native API 2014-02-06 18:06:29 +01:00