Commit Graph

1707 Commits

Author SHA1 Message Date
Kyle Fuller 1449b021a8 block_motd: Command names should be uppercase 2017-03-30 13:34:25 +02:00
Kyle Fuller 2d2672693a block_motd: Update internal state when server has no MOTD
Otherwise if we request MOTD and the server doesn't have one the module
would have incorrect state.
2017-03-30 13:34:25 +02:00
Kyle Fuller 45a6329312 block_motd: Fix tracking of accepting motd from server
When the module is loaded globally or per-user the
`m_bTemporaryAcceptMotd` would be used to store state on connecting to
an MOTD which could lead to timing issues of a full or partial MOTD
being incorrectly sent to another server while another user requested
motd via the module.

This commit will now track this state per IRCSock so if another
connected user requests an MOTD and another server sends an MOTD it will
not lead to MOTDs being incorrectly unblocked.
2017-03-30 13:34:25 +02:00
Alexey Sokolov aefc97d09a Merge pull request #1383 from Phansa/master
Adding comments to modules, updating dates to 2017
2017-03-23 22:49:29 +00:00
Adeet 6ba9b13271 updating comments 2017-03-23 18:47:36 -04:00
Cizzle 29d4f20485 Refactor duplicate code in crypt module. (#1386) 2017-03-16 21:36:19 +00:00
Cizzle ab34760613 crypt: Add Get/SetNickPrefix commands (#1382)
Hide the internal keyword from ListKeys
2017-03-15 18:28:00 +00:00
Phansa 4555d8774c Adding comments to modules 2017-03-12 20:42:59 -04:00
Phansa a0a3479d2f Adding liscene information 2017-03-12 20:39:58 -04:00
Phansa 3189ce7f8a Welcome to 2017
Welcome to 2017

temp

temp2
2017-03-12 20:34:26 -04:00
Adeet Phanse 879c813d58 Adding some comments to blockuser module (#1380) 2017-03-03 23:25:54 +00:00
Christophe Beauval cba58ca862 Add DH1080 keyexchange to the crypt module.
Close #1378
2017-03-01 01:16:06 +00:00
Alexey Sokolov c2c85b2335 Make more modules translateable (#1354) 2017-02-25 12:14:21 +00:00
Alexey Sokolov ad8d07a87a Improve *autoreply responses to Show and Set commands.
Also make it translatable (#1354)
2017-02-25 11:52:39 +00:00
Cizzle fc450cb486 Don't use the same or overlapping NickPrefix as StatusPrefix in the crypt module
Don't use a key which is a valid nickname, now changed to "@nick-prefix@" instead.
If you had loaded the crypt module before, the old settings will be converted.

Also check if the nick-prefix and status-prefix aren't the same or overlapping, "*" or "." are then used depending on either value. If they would be the same, you would be messaging a module instead of a user.
And if they'd overlap, depending on the nick, you could be messaging a module as well.
2017-02-22 15:25:08 +00:00
Alexey Sokolov 96dcde4329 Merge branch 'master' of github.com:znc/znc 2017-02-19 10:34:55 +00:00
Alexey Sokolov 455b5f8076 Merge branch '1.6.x' 2017-02-19 10:33:01 +00:00
Alexey Sokolov 0679957340 Fix regression of 1.6.4 which caused crash in modperl/modpython.
See #1283
2017-02-19 10:30:44 +00:00
Jos Ahrens 9635658258 [sasl] Do not try to convert entire "verbose" command to bool. (#1365)
Fixes #1291 for the stable branch.

Ref. https://github.com/znc/znc/commit/9864b2716a0274e046867aba83962b979d078bdd
for the original fix by psychon with dgw, this is merely a non-cherry-pick backport
as I realized too late it was already fixed elsewhere in the same manner.
2017-01-21 15:32:38 +00:00
Jos Ahrens a7be8fcd9c autoconf/makefile: alphabetically sort the modules we compile (#1368)
This alphabetically sorts the modules/ we compile so
that it's easier to see where we're currently at.
Has no effect with `make -j2`

Fixes #1358
2017-01-21 15:30:09 +00:00
Jos Ahrens 188b091514 SASL: More informative help command for Set.
With #1338, the parameter username was made optional, but the help
was not changed to reflect this.

ref. https://github.com/znc/znc/pull/1338#issuecomment-270563035
2017-01-12 22:12:01 +00:00
Alexey Sokolov 4416ef9731 Add a TODO
[skip ci]
2017-01-12 00:08:48 +00:00
Alexey Sokolov 1bb0199ec4 Fix missing renames in #1191 2017-01-08 10:06:21 +00:00
Alexey Sokolov e7b9ab2746 Make cyrusauth translateable (#1354) 2016-12-27 09:20:20 +00:00
Jos Ahrens 1b5bd128cc stickychan: Timer down to 60 seconds from 180. 2016-12-26 20:08:52 +00:00
Jos Ahrens e80582326a stickychan: stop checking so often, increase delay to once every 3 minutes 2016-12-26 20:08:52 +00:00
Alexey Sokolov 2fcde9f2e1 Fix a couple of issues pointed out by https://scan.coverity.com/ 2016-12-26 17:22:09 +00:00
Alexey Sokolov b666931883 Add an option to change ping timeout time.
Fix #979
2016-12-26 15:49:26 +00:00
Alexey Sokolov d9c1da8a68 Make it possible to translate arguments in help text of module commands
Ref #1354
2016-12-25 21:11:02 +00:00
Alexey Sokolov b5fde609c4 Make adminlog and alias translatable, rerun 'make translate'
Ref #1354
2016-12-25 21:02:42 +00:00
Alexey Sokolov ef6fb13ed2 Fix some modpython/modperl dependencies in cmake 2016-12-25 15:49:01 +00:00
Alexey Sokolov c803a85e13 Rename new On...Message modules callbacks to be more consistent.
OnPrivMessage -> OnPrivTextMessage
OnChanMessage -> OnChanTextMessage

Fix #1191
2016-12-25 15:48:29 +00:00
Alexey Sokolov 6125b5d1b8 Fix a warning in samplewebapi 2016-12-22 20:48:21 +00:00
Alexey Sokolov 106a36c22b Rerun SWIG in CMake build when headers change. 2016-12-21 08:59:10 +00:00
Alexey Sokolov 0aa3f7e362 route_replies: fix module to check if we are not connected to a network.
Cherry-pick of 34db7be4ae
2016-11-22 23:53:39 +00:00
Alexey Sokolov 2e6c8d90e7 Link pyeval to its wiki page 2016-11-20 23:43:53 +00:00
Jos Ahrens 881fa94add sasl: Make the first requirement for SET actually mandatory, return information about settings if no input for SET 2016-11-12 14:38:35 +00:00
lol768 9cc59b2b78 Address review comment, module is already global
https://github.com/lol768/znc/commit/b94c639e6a1755c33cc315aad247bbc50a83209e#commitcomment-19252797
2016-10-05 09:32:02 +01:00
lol768 3930c5b34e Sample web API doesn't make sense as a user module 2016-10-05 09:29:40 +01:00
lol768 0393153a62 Allow anonymous access for sample mod
This makes testing simpler.
2016-10-05 09:29:40 +01:00
Latchezar Tzvetkoff a9a7f17910 Allow modules to override CSRF protection.
Useful for Web APIs and all other kinds of things.

API changes:
	- Added public CHTTPSock::GetURI() method
	- Added public CModule::ValidateWebRequestCSRFCheck() method
	- Made CWebSock::GetCSRFCheck() method public so it can be accessed
	  from CModule
	- Added public CWebSock::ValidateCSRFCheck() method

Other changes:
	- Added a Sample Web API module (modules/samplewebapi.cpp) and a
	  simple web form with no CSRF check.

Implements feature request #1180.
2016-10-05 09:29:40 +01:00
Alexey Sokolov 222ae86fcc Fix newest additions to keepnick module and write the test for it.
Fix the documentation.

See #1324 and #1325
2016-10-05 09:21:21 +01:00
Jos Ahrens a6c79fa1e1 keepnick: improve behaviour by listening to ircd-side numeric errors (#1324)
Fixes #945
2016-10-03 23:23:45 +01:00
Donovan Zimmerman 1417783758 nickserv: support messages from X3 services 2016-09-30 12:46:51 -04:00
wolfy1339 00aadbaf91 Use <th> in <thead> instead of <td>
Ref: #1308
2016-09-22 12:39:00 -04:00
Alexey Sokolov b56ab9106d Fix OpenSSL CMake build on OS X
See #1311
2016-09-17 16:54:13 +01:00
Alexey Sokolov 3846813512 Merge branch '1.6.x'
Conflicts:
	modules/schat.cpp
	src/SSLVerifyHost.cpp
	src/Utils.cpp
2016-09-13 22:45:10 +01:00
William Elwood 03775fcdc5 Fix compile errors caused by OpenSSL 1.1 2016-09-12 23:39:19 +01:00
KindOne 34db7be4ae route_replies: fix module to check if we are not connected to a network.
psychon gets credit for this code change.
2016-09-12 04:45:15 -04:00
Alexey Sokolov 6a8fbbc933 Script modules should also use the new name of translation methods 2016-09-12 00:10:57 +01:00