Commit Graph

4514 Commits

Author SHA1 Message Date
J-P Nurmi
728108913c ClientCommand: C++11 range-based for loops 2015-02-24 09:27:06 +01:00
J-P Nurmi
539c519cce Mods: use case-insensitive wildcmp() for channel/host matching
Fixes #822
2015-02-23 22:35:46 +01:00
J-P Nurmi
616690f269 Add CLEARALLBUFFERS command (closes #852) 2015-02-23 22:24:47 +01:00
ManiacTwister
27d78795a7 Also strip controls from private messages 2015-02-23 22:15:01 +01:00
ManiacTwister
f27109f1b4 Implemented StripControls for channel messages and notices 2015-02-23 22:14:58 +01:00
J-P Nurmi
be5f26ba18 Merge remote-tracking branch 'origin/1.6.x' 2015-02-23 09:39:12 +01:00
J-P Nurmi
696b07947a CString: fix 'comparision' typos in the docs 2015-02-23 09:36:26 +01:00
Alexey Sokolov
962cb945eb Merge pull request #869 from jpnurmi/wildcmp
CString::WildCmp(): add an optional case-sensitivity argument
2015-02-23 00:05:25 -08:00
J-P Nurmi
afaf255246 CString::WildCmp(): add an optional case-sensitivity argument
It's getting a common pattern to call AsLower() or MakeLower() on
the arguments passed to WildCmp(), we might as well add this for
convenience. It's tempting to make it case-insensitive by default,
since pretty much any IRC related comparison should be, but that
could potentially break some existing code.
2015-02-23 08:45:52 +01:00
Alexey Sokolov
d9cf3f436f Merge branch '1.6' into 1.6.x 2015-02-23 06:02:55 +00:00
Alexey Sokolov
72678cc60c Merge pull request #874 from jpnurmi/webadmin
Fix #872: webadmin checkboxes
2015-02-22 21:36:06 -08:00
Uli Schlachter
11f1efaaac configure: Fix C++11 test with -Werror=missing-declarations
This fixes the following error (copied from config.log):

  conftest.cpp:49:14: error: no previous declaration for 'void
  test_template_alias_sfinae::test()' [-Werror=missing-declarations]

Signed-off-by: Uli Schlachter <psychon@znc.in>
(cherry picked from commit 2d1336dcf3)
2015-02-23 05:33:25 +00:00
Alexey Sokolov
f0ff3c6611 Merge pull request #863 from psychon/missing-declarations
configure: Fix C++11 test with -Werror=missing-declarations
2015-02-22 20:33:04 -08:00
Alexey Sokolov
e116d9ea0d Merge pull request #825 from OGAWAHirofumi/extend-clearbuffer
Extend clearbufferonmsg module and some znc commands for flexible buffer clear
2015-02-22 10:05:37 -08:00
Kyle Fuller
f874fbebe8 Merge pull request #880 from md-5/patch-3
Fix logo URL
2015-02-22 13:43:52 +00:00
md-5
6cb2d14ea3 Fix logo URL 2015-02-22 19:27:03 +11:00
OGAWA Hirofumi
c6d093a53a Change to return the value from OnUserQuit() as request 2015-02-22 04:33:15 +09:00
OGAWA Hirofumi
85941f87c0 Extend clearbufferonmsg module and some znc commands for flexible buffer clear
Current clearbufferonmsg clears buffer on some user actions (OnMsg,
OnCTCP, OnAction, OnNotice, OnPart, OnTopic). And user can't change
this fixed built-in rule.

This built-in rule to clear buffer is too inflexible. So, this
extends clearbufferonmsg to satisfy more users on different
situations.

Add args to clearbufferonmsg to allow that user choose callbacks to clear.

msg    - clear on OnUserMsg callback
ctcp   - clear on OnUserCTCP callback
action - clear on OnUserAction callback
notice - clear on OnUserNotice callback
part   - clear on OnUserPart callback
topic  - clear on OnUserTopic callback
quit   - clear on OnUserQuit callback

all    - set all options above

By default, clear on msg, ctcp, action, notice, part, topic. (except
quit for backward compatibility).

Example usage in znc.conf:

[set all options]
	LoadModule = clearbufferonmsg all

[on quit and part]
	LoadModule = clearbufferonmsg !all quit part
2015-02-22 04:33:15 +09:00
OGAWA Hirofumi
feec20b013 Add OnUserQuit() for extending clearbufferonmsg
Add OnUserQuit() callback. On smartphone, user doesn't want to see
same lines repeatedly. But, meanwhile, user doesn't want to miss lines
when connection was lost.

To do it, this uses OnUserQuit() callback. With this callback,
clearbufferonmsg can clear buffer if user quited client explicitly.
And when connection was lost, buffer is still not cleared.
2015-02-22 04:33:14 +09:00
J-P Nurmi
c0abef2c00 Merge remote-tracking branch 'origin/1.6' 2015-02-19 09:37:47 +01:00
J-P Nurmi
d7598a76dc Merge pull request #878 from Mkaysi/sasl16
modules/sasl.cpp: update help for "set"
2015-02-19 09:29:36 +01:00
Mikaela Suomalainen
2082362b0b modules/sasl.cpp: update help for "set"
This is the same as #793, but for correct branch.

Closes #793
2015-02-19 10:08:45 +02:00
J-P Nurmi
7345a6ee3a Fix CIRCNetwork::FindChans() and FindQueries() to be case-insensitive
The playback module failed to clear a buffer, because it tried to
clear "NickServ" whereas ZNC had internally stored it has "nickserv".
2015-02-19 08:45:58 +01:00
Uli Schlachter
5f9ad5cc87 SSLVerifyHost: Make some functions static
These functions shouldn't be visible outside of this file. This was caught by
-Werror=missing-declarations.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-02-19 08:39:22 +01:00
Uli Schlachter
fd34f84bfd ~CThreadPool(): Handle spurious wakeups
From pthread_cond_wait()'s man page:

  When using condition variables there is always a boolean predicate involving
  shared variables associated with each condition wait that is true if the
  thread should proceed. Spurious wakeups from the pthread_cond_wait() or
  pthread_cond_timedwait() functions may occur. Since the return from
  pthread_cond_wait() or pthread_cond_timedwait() does not imply anything about
  the value of this predicate, the predicate should be re-evaluated upon such
  return.

Fix ~CThreadPool() to account for this possibility.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-02-19 08:38:28 +01:00
Thomas Kriechbaumer
ac3570f18a fix savebuff timer initialization
closes #868
2015-02-19 08:34:01 +01:00
J-P Nurmi
9366320693 Merge pull request #876 from Mkaysi/sasl-requireauth
sasl: fix help text for requireauth
2015-02-19 08:20:14 +01:00
Mikaela Suomalainen
848085db68 sasl: fix help text for requireauth
Closes #875
2015-02-19 08:30:41 +02:00
Kyle Fuller
4d44bfe10f Merge pull request #870 from jpnurmi/startswith
Use CString::StartsWith()
2015-02-18 11:23:45 +00:00
J-P Nurmi
44705b7f47 Fix #872: webadmin checkboxes
Don't claim all networks/users have loaded a module when there are none
2015-02-18 11:29:28 +01:00
J-P Nurmi
00b1a7eedf Use CString::StartsWith()
Replace the use of deprecated CString::Equals(str,bool,int) by
CString::StartsWith(str,cs) which is more pleasant to read.
2015-02-18 00:42:25 +01:00
J-P Nurmi
a8b9542925 Merge remote-tracking branch 'origin/1.6'
Conflicts:
	configure.ac
	include/znc/version.h
2015-02-17 00:23:42 +01:00
Alexey Sokolov
f54c3b9e2d Remove --with-openssl from ./configure
1. The same functionality is achievable via
./configure LDFLAGS=-L/foo/lib CXXFLAGS=-I/foo/include PKG_CONFIG_PATH=/foo/lib/pkgconfig
2. Only openssl had this special flag, but not python, not zlib, etc.
3. It's confusing, lots of people try --with-openssl=/usr/bin/openssl
2015-02-17 00:23:29 +01:00
J-P Nurmi
1f7fe5f576 Increase the version number to 1.6.1 2015-02-17 00:11:49 +01:00
Uli Schlachter
2f058fcc80 Remove zncconfig.h in distclean
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712254

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-02-16 23:52:27 +01:00
Thomas Kriechbaumer
c5ab7337d2 fix sublists in changelog 2015-02-16 23:52:19 +01:00
J-P Nurmi
2397f8842a Bump the version to 1.7 2015-02-16 23:49:26 +01:00
Uli Schlachter
2d1336dcf3 configure: Fix C++11 test with -Werror=missing-declarations
This fixes the following error (copied from config.log):

  conftest.cpp:49:14: error: no previous declaration for 'void
  test_template_alias_sfinae::test()' [-Werror=missing-declarations]

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-02-14 19:45:01 +01:00
Ammar Askar
0985132fc6 Implement table sorting in webadmin, addresses #40 2015-02-14 03:07:12 +05:00
Thomas Ward
7ad60cf634 Fix CSS for _default_ for Fingerprints section 2015-02-13 15:43:10 -05:00
Alexey Sokolov
f47e8465ef Increase the version number to 1.6.0 znc-1.6.0 2015-02-12 21:05:44 +00:00
Alexey Sokolov
4d17d6213d Fix non-compilation with clang 3.1 2015-02-04 22:50:10 +00:00
J-P Nurmi
8f593cb37b controlpanel: add delserver command (closes #810) 2015-02-03 23:46:53 +01:00
Alexey Sokolov
ce3882e92f Merge pull request #841 from jpnurmi/cycle
Fix #840 - channel hopping/cycling
2015-02-02 20:27:03 +00:00
J-P Nurmi
7680421053 Fix #840 - channel hopping/cycling
A regression caused by aed1d61.
2015-02-02 10:41:13 +01:00
Alexey Sokolov
d4a36aaa93 Fix crash in znc --version, caused by latest commits.
Fix #838
2015-02-01 15:36:31 +00:00
Mikaela Suomalainen
ca953d45ed nickserv: use NICKSERV instead of PRIVMSG
Ref: https://github.com/znc/znc/issues/786#issuecomment-68104883

The NickServ command is usually server-side alias that ensures that
NickServ is U-lined server and not random user who has /nicked to
NickServ on misconfigured server that allows that.

NS would probably also work, but NICKSERV is more common.
Ref: https://github.com/ProgVal/Limnoria/pull/724#issuecomment-45381342
2015-02-01 11:55:23 +02:00
Alexey Sokolov
ff88f24494 Merge branch 'version' 2015-02-01 09:23:41 +00:00
Alexey Sokolov
cf6ec5646b Add ZNC to CTCP VERSION reply even if client is connected.
Previously, it replied to CTCP VERSION, but only if no client is connected.

See https://github.com/znc/znc/issues/820#issuecomment-70506203
2015-01-31 10:01:27 +00:00
Alexey Sokolov
f9a4507669 Add a global setting whether to show ZNC version or not
Close #820
Close #821
2015-01-30 23:01:06 +00:00