Commit Graph

3251 Commits

Author SHA1 Message Date
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
Alexey Sokolov a727ca6a6d Fix ./configure not to fail on non-bash
Thanks to jayne for patch
2014-01-17 21:00:30 +00:00
Alexey Sokolov 14e3bac2c1 Merge pull request #448 from dgw/patch-1
Add identify prompt for StarChat.net
2014-01-17 12:23:16 -08:00
Alexey Sokolov 559abc3d8c Merge pull request #458 from ConorOG/issues_235a
fix #235, erroric console output, status message overwrite
2014-01-16 15:22:33 -08:00
Alexey Sokolov e0fd211053 Merge pull request #441 from psychon/websocks-expire-oldest
WebModules: Discard sessions in LRU order
2014-01-16 15:21:27 -08:00
Alexey Sokolov dc9f30d397 Merge pull request #465 from jamesoff/jumpfix
Trim servername in jump command
2014-01-16 15:21:16 -08:00
James Seward 07c1628d50 Trim servername in jump command
Fixes e.g. tab-completing servername in irssi
2014-01-16 20:04:53 +00:00
Kyle Fuller c99eedaac3 Merge pull request #456 from Un1matr1x/master
Welcome to 2014 - year 10 with ZNC
2014-01-03 02:23:31 -08:00
Conor O'Gorman dd0ba1def4 define terminal control codes for messages, tidy, tweak ok message 2014-01-01 18:08:31 +00:00
Conor O'Gorman 2d1a632910 fix #235, erroric console output, status message overwrite
using alternative message style
otherwise ncurses/terminal codes for cursor position would seem necessary
2014-01-01 16:10:38 +00:00
Falk Seidel f19b4caa43 Welcome to 2014 - year 10 with ZNC 2013-12-31 10:10:55 +01:00
dgw e379a7a81a Add identify prompt for StarChat.net
Apparently StarChat.net uses a very old (?) or obscure NickServ
service that doesn't send any of the more common prompts for ID.
(It also doesn't support nick grouping, more's the pity.)
2013-12-17 16:38:18 -05:00
Uli Schlachter 414fa40eb5 WebModules: Discard sessions in LRU order
Currently, znc has a limit of 5 web sessions per IP address. This limit exists
to defend against some obvious DoS attacks. When this limit is hit, some session
is discarded.

Previously, we would discard the session that std::multimap::find() would give
us. The multimap used mapped from IP addresses to sessions. Thus, we would
discard the oldest session.

This commit changes this into some least-recently-used logic. Whenever a session
is used, we record the timestamp of this. Then when a session has to be picked
for discarding, the one with the oldest timestamp is used.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-12-07 20:56:27 +01:00
Alexey Sokolov 9e0597fd07 Merge pull request #432 from dgw/out-of-networks-err-sp
Tweak wording of "out of networks" errors
2013-11-21 09:50:51 -08:00
dgw 2b3d40a501 tweak wording of "out of networks" errors 2013-11-21 13:07:17 +04:00
Alexey Sokolov 5d74720576 Merge pull request #430 from Dessimat0r/webadmin1
Added SSL (+) and port in networks list for connected servers
2013-11-20 20:36:29 -08:00
Chris Dennett 054e873bec Added SSL (+) and port in networks list for connected servers. 2013-11-17 16:34:32 +00:00
Alexey Sokolov 1790778417 Add ./configure --with-gtest=/path/to/gtest
The specified dir is expected to contain files DIR/src/gtest-all.cc and
DIR/src/gtest_main.cc

This is to make Debian happy, because make test doesn't require internet
access anymore.
2013-11-17 20:03:24 +04:00
Alexey Sokolov 74da8488ef Merge pull request #429 from somasonic/master
Add the ability to set and retrieve MaxNetworks from controlpanel module
2013-11-16 19:57:08 -08:00
Andrew Northall 5f660f37c2 Add the ability to set and retrieve MaxNetworks 2013-11-16 20:04:17 +00:00
Alexey Sokolov f6b8167e36 Merge pull request #341 from cork/master
Add irc command to allow disabling channel
2013-11-14 11:24:00 -08:00
Alexey Sokolov 62c843f8cf Merge branch 'master' of github.com:znc/znc 2013-11-14 22:40:56 +04:00
Alexey Sokolov bfd1edc740 Don't generate .pyc files ourself
It's good for cross-compilation, because in that case binaries produced
by CXX are not runnable.
2013-11-14 22:39:34 +04:00
Alexey Sokolov 3e56f093f2 X-Forwarded-For: verify the whole chain, from the end 2013-11-14 22:37:36 +04:00
Alexey Sokolov ccbc469168 Merge commit 'refs/pull/349/head' of github.com:znc/znc 2013-11-14 08:27:50 +04:00
Alexey Sokolov 4f0b5f4440 Merge pull request #426 from vincentbernat/fix/awaystore
awaystore: ping when requesting to come back
2013-11-12 20:03:16 -08:00
Alexey Sokolov 2a7bc29fcc Fix new OnAdd/DeleteNetwork hooks for perl/python 2013-11-09 10:17:34 +04:00
Vincent Bernat 459afe11e8 awaystore: ping when requesting to come back
When using the `back` command, also call `Ping()`. Otherwise, we will
be marked away in less than a minute.
2013-11-04 23:13:30 +01:00
Alexey Sokolov 66eba26e1c Merge commit 'refs/pull/408/head' of github.com:znc/znc 2013-11-04 22:18:30 +04:00
Alexey Sokolov 79b33ea15d Merge pull request #388 from Lunatrius/master
Add detached only support to the watch module.
2013-11-04 09:41:51 -08:00
Alexey Sokolov e8e95d770e Increase the version number to 1.3 2013-11-04 16:25:07 +04:00
Alexey Sokolov 49cf40b19c Increase the version number to 1.2 znc-1.2 2013-11-04 16:07:13 +04:00
Kyle Fuller a4e275408a Merge pull request #425 from KindOne-/patch-2
Correct typo in controlpanel.
2013-10-31 04:36:19 -07:00
KindOne d173219ef8 Correct typo in controlpanel.
This typo was created in commit 853ddc5c2a
2013-10-30 23:32:23 -04:00
Corn Flakes 76d67e006e Merge pull request #418 from akihiro/master
Fix: Converted raw string include NULL character in charset module
2013-10-27 08:20:43 -07:00
Hiroaki Mizuguchi d3a7283d0b Fix: Converted raw string include NULL character in charset module 2013-10-26 09:35:20 +00:00
Alexey Sokolov feca415c23 Fix a random crash with module hooks
How to reproduce:
1. have a global module which in a hook does something which calls
hooks too, e.g. Broadcast()
2. have another global module loaded after the first one which uses
m_pNetwork in that hook
3. enjoy the crash (or just weird behavior if you're unlucky)

So, when ZNC is setup with the "proper" global modules and in a special
order, one can crash it just from IRC, by triggering the needed module hooks.

Affected version: 1.0

Thanks to ChauffeR (Simone Esposito) for reporting the issue
and helping to debug it.
2013-10-20 22:33:57 +04:00
Alexey Sokolov cc279666de Pregenerate version.cpp in release tarballs 2013-10-20 19:36:16 +04:00
Alexey Sokolov 6aaf0770f3 Remove test .o files on make clean 2013-10-20 17:52:04 +04:00
Alexey Sokolov c74344f783 Fix error message for invalid network name 2013-10-20 17:51:43 +04:00
Alexey Sokolov 11efcee422 Merge commit 'refs/pull/422/head' of github.com:znc/znc 2013-10-20 17:42:45 +04:00
Alexey Sokolov 40a32820fd Merge pull request #423 from KindOne-/patch-1
Update outdated README info.
2013-10-20 06:30:15 -07:00
KindOne 71df50ec62 Update outdated info.
gcc 3 is outdated.
saslauth is now called cyrusauth.
Add freenode network.
2013-10-19 02:51:35 -04:00
Ingmar Runge 7a1b725958 whitespace fix 2013-10-18 21:03:20 +02:00
Ingmar Runge b5c898eaff modules: add OnAddNetwork, OnDeleteNetwork hooks. 2013-10-18 20:35:21 +02:00
Alexey Sokolov d16ab96032 Fix saving config on cygwin
It failed always on some installations
2013-10-15 22:04:21 +04:00
Alexey Sokolov 91c07d5af1 Fix tests on cygwin
Thanks to KindOne for reporting it
2013-10-14 20:27:27 +04:00
Alexey Sokolov bb9905e99e Add make-tarball.sh script
Initially by psychon, then kylef modified it and helped to find it when
it was lost

So let it just lay here in order not to be lost again
2013-10-14 00:18:33 +04:00
Alexey Sokolov 6022a2c06a Merge pull request #419 from TheLordOfTime/master
controlpanel.cpp: Modify the message for when you attempt to delete the currently active network
2013-10-13 10:27:25 -07:00
Alexey Sokolov 1c06af3b38 Fix: Don't try to include zncconfig.h when it doesn't exist yet 2013-10-13 21:08:43 +04:00