Commit Graph

3830 Commits

Author SHA1 Message Date
J-P Nurmi
b0ddd5082e CZNC: C++11 range-based for loops 2015-02-26 11:53:42 +01:00
J-P Nurmi
284aa1b5b6 CUtils: C++11 range-based for loops 2015-02-26 09:31:55 +01:00
J-P Nurmi
5a338d91cb CHTTPSock: C++11 range-based for loops 2015-02-26 09:31:35 +01:00
J-P Nurmi
36823da403 CTemplate: C++11 range-based for loops 2015-02-26 09:31:18 +01:00
Alexey Sokolov
eb5aa75c16 Merge pull request #859 from teward/master
Band-aid Fix CSS for _default_ for Fingerprints section (Fix #828)
2015-02-25 22:08:19 -08:00
Alexey Sokolov
f353c7aeef Merge pull request #844 from jpnurmi/delserver
controlpanel: add delserver command (closes #810)
2015-02-25 22:01:27 -08:00
Alexey Sokolov
0794e602a7 Merge pull request #889 from jpnurmi/c++11
Replace some C++98isms with C++11isms (#816)
2015-02-25 22:00:06 -08:00
Alexey Sokolov
bc1eeaa3d8 Merge pull request #886 from jpnurmi/for-loops
C++11 range-based for loops
2015-02-25 21:44:54 -08:00
J-P Nurmi
84e289cc76 CUser: C++11 range-based for loops 2015-02-26 00:17:46 +01:00
J-P Nurmi
6002bd5c2b Remove unnecessary virtual keyword occurrences
This makes it convenient to 'grep virtual' and 'grep override' :)
2015-02-25 18:33:09 +01:00
J-P Nurmi
ef9939e1ec Add override (#816)
Changes applied by 'clang-modernize -add-override [...]'
2015-02-25 09:24:00 +01:00
J-P Nurmi
70c0ffb10b Use nullptr (#816)
Changes applied by 'clang-modernize -use-nullptr [...]'
2015-02-25 09:20:20 +01:00
J-P Nurmi
21a04c3b98 CWebModules: C++11 range-based for loops 2015-02-25 07:58:37 +01:00
J-P Nurmi
6084990163 CModules: C++11 range-based for loops 2015-02-25 07:58:37 +01:00
J-P Nurmi
0485aa8033 CClient: C++11 range-based for loops 2015-02-25 07:58:37 +01:00
Alexey Sokolov
26cc16caa7 Merge pull request #884 from jpnurmi/mods-wildcmp
Mods: use case-insensitive wildcmp() for channel/host matching
2015-02-24 22:29:39 -08:00
Alexey Sokolov
065b75cddf Merge pull request #888 from jpnurmi/weffc++
Fix copy ctor/assignment oper warnings of -Weffc++ (#270)
2015-02-24 21:16:04 -08:00
J-P Nurmi
a31b698c64 Fix copy ctor/assignment oper warnings of -Weffc++ (#270)
include/znc/Foo.h: warning: ‘class CFoo’ has pointer data members [-Weffc++]
    include/znc/Foo.h: warning:   but does not override ‘CFoo(const CFoo&)’ [-Weffc++]
    include/znc/Foo.h: warning:   or ‘operator=(const CFoo&)’ [-Weffc++]
2015-02-24 23:35:37 +01:00
Alexey Sokolov
9e966513c8 Merge pull request #882 from jpnurmi/for-loops
ClientCommand: C++11 range-based for loops
2015-02-24 07:42:27 -08:00
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
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