Commit Graph

1620 Commits

Author SHA1 Message Date
Alexey Sokolov
e9006634cb Merge branch '1.6.x' 2016-01-09 18:23:06 +00:00
Alexey Sokolov
5d014193b4 Don't require reconnect after changing encoding. 2016-01-09 18:18:44 +00:00
Alexey Sokolov
4fe4a45dd6 Disable legacy encoding mode when modpython is loaded.
Python is not happy when using non-unicode text as str.

Fix #1229
2016-01-09 14:18:24 +00:00
Alexey Sokolov
1e1fadbc2b Merge branch '1.6.x' 2016-01-07 20:59:50 +00:00
Alexey Sokolov
c21e60ad7a Fix memory leak in modperl.
The reason is the same as it was for modpython in #1017
2016-01-07 01:14:21 +00:00
Ondřej Nový
6881ca5b8f Fixed few misspellings 2016-01-05 20:45:08 +01:00
Falk Seidel
8f73840e74 Welcome to 2016
🎆  Happy 2016 🎆
2016-01-01 20:11:21 +01:00
Daniel Barnes
d4c299049e modules/sasl, modules/route_replies: interpret messages as intended even if they have prefix tags 2015-12-22 08:30:26 -07:00
Alexey Sokolov
16a8c77737 Replace virtual with override where possible.
Using clang-tidy
2015-12-08 20:51:50 +00:00
Alexey Sokolov
d185d6f22d clang-format: switch tabs to spaces
I like tabs, but I have to admit that spaces make source code more
consistent, because every editor/viewer tends to render tabs differently :(
2015-12-07 00:53:30 +00:00
Alexey Sokolov
3861b6a583 Fix several comments broken by clang-format 2015-12-07 00:53:01 +00:00
Alexey Sokolov
33b0627d75 Add clang-format configuration.
For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.
2015-12-07 00:53:01 +00:00
Alexey Sokolov
7f6fc6643e Merge branch 'master' into notify
Conflicts:
    test/Integration.cpp
2015-11-30 08:02:47 +00:00
Alexey Sokolov
569f057561 Call CTCP callback for actions too, as it was before switch to CMessage.
Partyline had both of callbacks, one of which is redundant.

Fix #1134
Fix #1190
2015-11-29 00:59:50 +00:00
Oleh Prypin
facec8d4a3 Show client identification in notify_connect module 2015-11-26 17:00:30 +02:00
Alexey Sokolov
0b9c7f7436 modperl: provide operator "" for ZNC::String 2015-11-23 09:57:48 +00:00
Alexey Sokolov
cbf5c38d0a Teach modperl and modpython about CMessage and new hooks which accept it.
Fix #1084
Fix #1085
2015-11-22 23:39:30 +00:00
Alexey Sokolov
622c07b864 Merge pull request #1171 from walliski/logNameFix
Make $USER and $NETWORK case sensitive in logs
2015-11-04 22:52:43 +00:00
Alexey Sokolov
81fd078157 Merge branch '1.6.x' 2015-10-31 11:58:30 +00:00
Alexey Sokolov
fa4c01e49d Add missing return statement to dcc module.
It was harmless, but it makes Coverity happier.
2015-10-31 02:30:04 +00:00
Alexey Sokolov
0d8bb7e597 Merge branch '1.6.x'
Conflicts:
	modules/cyrusauth.cpp
	modules/keepnick.cpp
	modules/notes.cpp
2015-10-30 14:56:28 +00:00
Alexey Sokolov
096dc5b320 Fix some unitialized fields in modules.
They are not used before OnLoad anyway, but Coverity will be happier.
2015-10-30 14:52:51 +00:00
Alexey Sokolov
3236240029 Merge branch '1.6.x' 2015-10-30 01:18:49 +00:00
Alexey Sokolov
f6aa35c6fb Really fix #528
The previous fix (5e6e3be3) left a possibility to use-after-delete,
though it has been much harder to accidentally trigger.

If AddChan(pChan) fails, it deletes pChan, so the new crash was
happening during showing of error message.

Test for this is at master branch: 9777a1a667

Thanks to https://scan.coverity.com/ for pointing at this.
2015-10-30 01:16:29 +00:00
Walliski
54ab10a311 Removed AsLower from $USER and $NETWORK since these are case sensitive 2015-10-27 01:35:57 +02:00
Chris Tyrrel
2b4f3bdac8 Fix recently introduced crash in controlpanel.
See #1051
2015-10-26 00:16:34 +00:00
Alexey Sokolov
3856e7ba2f Merge pull request #1150 from jreese/simple-away
Fix #1133: Add MinClients option to simple_away
2015-10-20 07:37:50 +01:00
Alexey Sokolov
0d21471b74 Merge branch '1.6.x'
Conflicts:
    .travis.yml
2015-10-16 23:32:37 +01:00
Alexey Sokolov
c87a40ac9b Merge pull request #1145 from Zarthus/blockmotd_override
blockmotd: Allow overriding via command
2015-10-16 08:00:03 +01:00
John Reese
8d7ea21998 Add more verbose output when setting/getting MinClients 2015-10-15 11:08:48 -07:00
Jos Ahrens
92b4f92577 blockmotd: Allow overriding via command
Fixes #783
2015-10-15 11:54:14 +02:00
Alexey Sokolov
eb6852f58b Merge pull request #1140 from Zarthus/simpleaway-expandstring
Use ExpandString for simple_away, rename %s to %awaytime% to follow ExpandString standards
2015-10-15 09:00:06 +01:00
John Reese
fdff38f0e6 Fix #1133: Add MinClients option to simple_away
This adds a new option and command to the module, "MinClients", that
specifies the minimum number of clients that must be connected for the
module to considered the user as available.  If fewer clients are
connected than the minimum, the user will be marked away, even if there
are still clients attached.  The default value is "1", which replicates
the existing behavior of the module.

To modify the MinClients value, `/msg *simple_away MinClients [<value>]`
is available.  Running the command without parameters will display the
current value instead of modifying it.
2015-10-12 17:54:17 -07:00
Jos Ahrens
25f40b7d2c Use ExpandString for simple_away, rename %s to %awaytime% to follow ExpandString standards
To support upgrading, %s will still be replaced with the Away Time. but we just refer to it
as %awaytime% to be consistent with ExpandString substitutions.
2015-10-03 11:38:38 +02:00
Alexey Sokolov
9f151c5bc9 Merge pull request #1130 from Zarthus/alias-dump-command
alias: add 'dump' command to copy your config between users.
2015-10-02 20:53:34 +01:00
Jos Ahrens
9f63a491af Fixes a weird sentence in clientnotify syntax help. 2015-10-02 19:40:20 +02:00
Jos Ahrens
a83aedd932 alias: add 'dump' command to copy your config between users.
This fixes issue znc/znc#1114 - and also a small consistency fix
2015-09-27 13:24:04 +02:00
Mikaela Suomalainen
aa631a5ee7 perform: add descriptions for commands
Thanks @ChasedSpade

Closes #1100
Closes #1102
2015-09-21 16:46:17 +03:00
J-P Nurmi
e879203d54 Merge branch '1.6.x'
Conflicts:
	modules/bouncedcc.cpp
2015-09-20 23:36:44 +02:00
Mikaela Suomalainen
c8ab811a29 cert: add description for the "info" command 2015-09-20 23:31:37 +02:00
J-P Nurmi
f4c22aff6c Incorporate CIRCSock::ForwardRaw353() into CClient::PutClient() 2015-09-20 23:22:02 +02:00
J-P Nurmi
439ea98da9 crypt: add missing override [-Winconsistent-missing-override] 2015-09-20 23:18:31 +02:00
Alexey Sokolov
3032664a65 Merge pull request #813 from anthonyryan1/master
Expand crypt module to cover Notices, Actions & Topics
2015-09-20 19:36:44 +01:00
Anthony Ryan
baeb1daa69 Expand crypt module to cover Notices, Actions & Topics
Improves compatibility with mircryption.
2015-09-20 14:14:26 -04:00
J-P Nurmi
3c2ec45d4c Fix more warnings [-Winconsistent-missing-override] 2015-09-20 17:30:48 +02:00
Alexey Sokolov
9493964a3d Merge pull request #1087 from Mikaela/route_replies
route_replies: make the timeout error more clear
2015-09-20 15:16:13 +01:00
Alexey Sokolov
073e538094 Merge pull request #1104 from Mikaela/module-descriptions
Add descriptions for missing commands in lastseen & certauth & route_replies
2015-09-20 15:14:14 +01:00
Mikaela Suomalainen
f1cc0e4492 lastseen & certauth & route_replies: add missing descriptions 2015-09-20 16:28:50 +03:00
Mikaela Suomalainen
535d28bf32 route_replies: make the error more clear 2015-09-20 16:27:31 +03:00
J-P Nurmi
078eef5ba9 partyline: send RPL_ISUPPORT regardless of network or IRC connection
The behavior of IRC clients is unpredictable if they don't get the
appropriate CHANTYPES for partyline channels. Thus, send RPL_ISUPPORT
with the appropriate CHANTYPES also when a client is not connected to
a network, or when the network is not connected to IRC.
2015-09-20 02:19:58 +02:00