Eli Young
d32ac7c184
Log user quit messages
...
Since OnIRCDisconnected() doesn't include the quit message, and OnQuit()
isn't called when the user quits, we need to hook OnSendToIRCMessage().
2017-04-21 17:45:16 -07:00
Alexey Sokolov
9146ea6187
Merge pull request #1398 from elyscape/feature/onsend-message-hooks
...
Add OnSendToIRCMessage and OnSendToClientMessage
2017-04-22 01:10:38 +01:00
Eli Young
823ac07240
Add OnSendToIRCMessage and OnSendToClientMessage
...
This also alters PutClient such that the CMessage variant handles
sending messages, rather than the CString variant. As a side bonus, this
gives callers better information on whether the message was sent to the
client. Additionally, it eliminates the need for a hook to let modules
set the tags sent to a client, as that can now be done inside
OnSendToClientMessage.
2017-04-18 15:43:16 -07:00
Alexey Sokolov
f37aa308e1
Merge pull request #1396 from elyscape/fix/on-user-quit-hook
...
Fix OnUserQuitMessage documentation
2017-04-16 10:22:41 +01:00
Eli Young
b46702ec3b
Fix OnUserQuitMessage documentation
2017-04-10 14:45:00 -07:00
Alexey Sokolov
57b912f645
Merge pull request #1361 from kylef/kylef/block_motd
...
Fix block_motd incorrectly tracking state on which user requested MOTD
2017-04-10 00:16:16 +01:00
Phansa
c0c6705f5d
Welcome to 2017
...
Welcome to 2017
2017-04-10 00:11:40 +01:00
Eli Young
20b635aad7
Don't try to quit multiple times ( #1392 )
...
Calls to CIRCSock::Quit() eventually result in the object's destructor
being called, which itself calls CIRCSock::Quit() again. Avoid sending
multiple quit messages to the remote server by checking if the
underlying socket is already marked for closing.
2017-04-10 00:10:00 +01:00
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
Alexey Sokolov
7feac39896
Merge branch 'master' of github.com:znc/znc
2017-03-12 21:16:23 +00:00
Alexey Sokolov
a0909595a4
Merge branch '1.6.x'
2017-03-12 21:16:05 +00:00
Alexey Sokolov
c6485cddc9
Revert version to 1.6.x
2017-03-12 21:08:00 +00:00
Alexey Sokolov
0267082eaa
1.6.5
znc-1.6.5
2017-03-12 21:00:29 +00:00
Alexey Sokolov
c40d4a4efb
ZNC 1.6.5-rc1
znc-1.6.5-rc1
2017-03-03 23:28:35 +00:00
Adeet Phanse
879c813d58
Adding some comments to blockuser module ( #1380 )
2017-03-03 23:25:54 +00:00
Alexey Sokolov
500927fc10
Fix docs generation on travis
...
Thanks to @psychon for noticing this
2017-03-02 22:58:07 +00:00
Alexey Sokolov
9e941cb972
Fix test for autoconf build
2017-03-01 23:37:23 +00:00
Christophe Beauval
cba58ca862
Add DH1080 keyexchange to the crypt module.
...
Close #1378
2017-03-01 01:16:06 +00:00
Alexey Sokolov
88d1e27cc6
Fix CMake build:
...
* VERSION_EXTRA is now supported
* znc-buildmod uses the correct ZNC library instead of one in /usr/share
2017-02-28 23:01:09 +00:00
Uli Schlachter
74bfbea6f2
Speed up FixCVE20149403 test
...
The test was unnecessarily waiting for ZNC to join some channel, which
took a long time.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2017-02-28 13:07:15 +01:00
Uli Schlachter
7b2a127841
Fix tests relying on table output
...
The output style of tables was recently changed. This broke the
ControlpanelModule integration test. Adapt some of the patterns used so
that they work again.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2017-02-28 12:59:00 +01:00
Uli Schlachter
1543635abf
integration tests: Improve message when ZNC is missing
...
Previously, "more or less unrelated" things would fail. After this
change, also a message is printing that gives a hint on what went wrong.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2017-02-28 12:57:13 +01:00
Alexey Sokolov
c2c85b2335
Make more modules translateable ( #1354 )
2017-02-25 12:14:21 +00:00
Alexey Sokolov
80c24b335d
Update a comment
2017-02-25 12:13:24 +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
Alexey Sokolov
6ddede7779
Revert 3382543917 and
...
00ddcd302f
ListChans for now will behave as before, and ShowChan isn't currently
needed.
See #914
2017-02-24 23:49:18 +00:00
Alexey Sokolov
a44aa0c699
Revert tables to how they were in 1.4
...
See #914
2017-02-24 23:49:18 +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
Christophe Beauval
02db444941
Add /install_manifest.txt and /install_manifest_*.txt to .gitignore.
2017-02-14 22:58:27 +00:00
Jos Ahrens
14e68299fe
cli: help: sort arguments alphabetically ( #1367 )
...
Changes the output of `znc --help` to order the arguments
in alphabetical order.
2017-01-21 15:36:12 +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
Alexey Sokolov
ec52dccace
Merge branch 'master' of github.com:znc/znc
2017-01-15 23:07:25 +00:00
Alexey Sokolov
c7c878adc8
Fix build on macOS Sierra (10.12)
...
Rename OS X to macOS
Add Sierra to Travis
2017-01-15 23:04:55 +00:00
Alexey Sokolov
55adbc896e
Travis: the last job should wait for the rest, not the first one
...
Mitigate timeouts
2017-01-15 23:04:42 +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