Commit Graph

3448 Commits

Author SHA1 Message Date
Alexey Sokolov bfbdac2de3 Fix travis mail in commits to docs. 2014-08-11 20:50:08 +01:00
Alexey Sokolov f2f3edb9e1 travis: Use only 3 cores, not all of them.
There's no enough memory for so big parallelism:
https://travis-ci.org/znc/znc/builds/32185840
2014-08-11 08:08:35 +01:00
Alexey Sokolov 2aecdf0be2 Merge pull request #622 from Mkaysi/master
.travis.yml: use more CPUs for compiling
2014-08-10 17:40:56 +01:00
Mikaela Suomalainen 6a1af6bf89 .travis.yml: use more CPUs for compiling 2014-08-10 16:01:14 +03:00
Alexey Sokolov da378afe85 Merge pull request #619 from jpnurmi/cchan-sendbuffer
Fix CChan::SendBuffer()
2014-08-09 09:07:29 +01:00
J-P Nurmi f238a24190 Fix CChan::SendBuffer()
The CChan::SendBuffer(CClient,CBuffer) overload should just playback
the given buffer and obviously not clear the channel's own buffer
=> auto-clear the buffer in CChan::SendBuffer(CClient) as appropriate.
2014-08-08 23:36:21 +02:00
Alexey Sokolov 83a25c5355 Merge pull request #598 from jpnurmi/query
Full-fledged query buffers
2014-08-07 20:44:11 +01:00
J-P Nurmi 287a020d21 savebuff: handle query buffers 2014-08-04 10:04:22 +02:00
J-P Nurmi 46bd6b05b2 clearbufferonmsg: handle query buffers 2014-08-04 10:04:22 +02:00
J-P Nurmi 2d532fb8b9 webadmin: add support for AutoClearQueryBuffer & MaxQueries 2014-08-04 10:04:21 +02:00
J-P Nurmi 5bed1e537c controlpanel: add support for AutoClearQueryBuffer & MaxQueries 2014-08-04 10:04:21 +02:00
J-P Nurmi 14a534c953 Full-fledged query buffers
Store query buffers per query the same way it's done for channels.

This allows clients to implement persistent query buffers. Queries
remain open across clients and sessions until a client explicitly
sends a command to clear a (closed) query buffer.

A new config option AutoClearQueryBuffer that default to false
ensures behavioral backwards compatibility, and another config
MaxQueries protects from OOM eg. due to PM attacks.
2014-08-04 10:04:21 +02:00
Alexey Sokolov e97a3ce9d0 Merge pull request #611 from NuclearW/awaystore-timestamp
Add timestamp parsing to awaystore away messages
2014-08-01 22:40:43 +01:00
NuclearW 6aaf3ba96a Add timestamp parsing to awaystore away messages
Pass the given reason through CUtils::FormatTime before setting it, allows use of strftime formatting in away messages.
2014-07-29 11:17:17 -04:00
Alexey Sokolov 8a5e7ef8ed Merge pull request #600 from NuclearW/route-reply
Add numerics 307 and 379 to route_replies for whois
2014-07-23 22:40:40 +01:00
NuclearW 658252948a Add numerics 307 and 379 to route_replies for whois
UnrealIRCd (at least version Unreal3.2.10+) sends numerics 307 and 379 on whois if the client is an IRCop.
These are non-rfc and they can be seen documented here: https://www.alien.net.au/irc/irc2numerics.html
2014-07-21 18:58:00 -04:00
Alexey Sokolov b1b3888231 Merge pull request #590 from FruitieX/master
Use only lower case characters in log filenames
2014-07-21 23:14:24 +01:00
Rasmus Eskola 9670d0bdc0 make the log filename lower case always
this fixes an annoying bug where two separate log files will be written
if an irc client sends to channel #Foobar and another irc client sends
to channel #foobar.
2014-07-22 00:50:54 +03:00
Alexey Sokolov 67122090ae Merge pull request #599 from NuclearW/awaystore-action
In awaystore, store CTCP ACTIONs
2014-07-21 22:47:40 +01:00
NuclearW 3bf9350769 Store CTCP ACTIONs recieved as well as normal PRIVMSGs.
Prepends CTCP ACTION messages recieved with a "* " before storing them.
Additionally change AddMessage to accept const CString&
2014-07-21 17:24:03 -04:00
Uli Schlachter 680935723f Fix typo in last commit
Thanks to drbean for reporting this in FreeNode/#znc.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-07-14 15:56:03 +02:00
Uli Schlachter ba11b8eecf Less magic numbers for timeout settings
Currently the connection timeout handling of znc uses three magic numbers, each
of which is at least repeated in two unrelated places. This commits defines the
numbers in CIRCNetwork and makes the other places just use this number.

This also renames PING_TIMEOUT to PING_FREQUENCY because I feel that describes
this constant better.

I am not really happy about the name NO_TRAFFIC_TIMEOUT that is used for the
real timeout, but I couldn't think of a better name. PING_TIMEOUT isn't good
because that sounds like the time between sending a PING and the resulting
timeout.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-07-14 15:33:36 +02:00
Alexey Sokolov 154bf9fdd6 Merge pull request #589 from wbierman/master
NickServ module will now correctly identify NickServ on tddirc.net
2014-07-01 23:24:14 +01:00
Bill Bierman 47e5967d43 NickServ module will now correctly identify NickServ on tddirc.net 2014-07-01 10:36:46 -10:00
Kyle Fuller 1aec51876b Merge pull request #584 from Mkaysi/folks
modules/autoop.cpp & autovoice.cpp: Be more gender neutral.
2014-06-27 16:20:01 +01:00
Mikaela Suomalainen 19ab051c12 Make autoop & autovoice gender neutral. 2014-06-27 08:55:39 +03:00
Alexey Sokolov 1271580567 Merge pull request #560 from ahf/join-channels-on-connect
Start joining channels immediately after connect
2014-06-21 22:56:47 +01:00
Alexander Færøy 2521d64a1c Add PING_TIMEOUT constant to CIRCNetwork 2014-06-18 21:04:20 +02:00
Alexander Færøy 1e9e029227 Start joining channels as soon as we are connected 2014-06-18 21:04:20 +02:00
Alexander Færøy 299f3aa637 Split CUserTimer into CIRCNetworkPingTimer and CIRCNetworkJoinTimer
This patch splits CUserTimer into two other timers:

CIRCNetworkPingTimer: This timer sends PING messages to connected
client's and IRC servers.

CIRCNetworkJoinTimer: This timer enforces the MaxJoin setting by only
allowing a specified amount of channels to join at the same time.

JoinChans() is modified to reset the ping timer once we hit the MaxJoin.
This allows us to call it from any function without breaking the timing
logic.
2014-06-18 21:04:20 +02:00
Alexander Færøy ef1639e7e0 Join channels immediately after spoof if set
This patch makes the client start joining its channels as soon as its
spoof if set, if the user uses JoinAfterCloaked.
2014-06-18 21:04:20 +02:00
Alexey Sokolov 93d2eec4db Update Csocket to ef6bcb9d5c1aecd778c5a57604eabdcb5e1ee06e 2014-06-17 23:22:16 +01:00
Alexey Sokolov 64fb99a469 Merge commit 'refs/pull/568/head' of github.com:znc/znc 2014-06-10 21:58:13 +01:00
Alexey Sokolov 2a656f539d If web requests starts not with URI prefix, redirect to root of the prefix
Before it shown the right result even with wrong path (without prefix),
but it worked only with ZNC directly, not via reverse proxy.

Now it won't work with ZNC directly too.
2014-06-10 21:55:38 +01:00
Vasily Fomin c927f9d419 Move CSS definition into template file so it can be processed by template engine.
This gives us opportunity to handle URI prefixes.
2014-06-10 22:51:14 +02:00
Vasily Fomin 8dd88374d3 Updated NOTICE file. 2014-06-10 22:34:11 +02:00
Vasily Fomin 5701889531 Changes icon to the [File:External](https://commons.wikimedia.org/wiki/File:External.svg)
NOTICE: icon license is public domain.
2014-06-10 22:14:25 +02:00
Vasily Fomin 0467b69535 Fixes issue #505: Module links in webadmin should use _blank.
Wikipedia "Icon External Link"
(http://commons.wikimedia.org/wiki/File:Icon_External_Link.png)
is being used as an icon for the external link.
2014-06-10 21:30:37 +02:00
Alexey Sokolov a5cd284ad4 Merge pull request #567 from orchid-hybrid/master
autoop: several hostmasks per user
2014-06-08 16:07:29 +01:00
orchid-hybrid b129e209e8 Update autoop.cpp
Fix indentation and key/channels display for users removed by deleting all hostmasks
2014-06-08 10:27:16 -04:00
orchid-hybrid 73f89c79fe Update autoop.cpp
show key and channels when deleting a user by removing all their hostmasks
2014-06-08 10:44:52 +01:00
orchid-hybrid baf14adf0c Update autoop.cpp
Set it so that when you remove all hostmasks of a user, the user is also deleted
2014-06-08 10:18:39 +01:00
orchid-hybrid 9189e4d90c Update autoop.cpp
formatting improvements
2014-06-08 09:58:15 +01:00
orchid-hybrid 20f925de19 Update autoop.cpp
Further improvements to autoop module:

* Tabulate the data vertically with a new column for each hostname
* Rename table column to Hostmasks
* <mask>,[<mask>] inside help for AddHosts
* Help for AddUser updated
2014-06-08 09:38:46 +01:00
orchid-hybrid ba1ff0ec2a Update autoop.cpp
Added support for multiple comma separated hostmasks per user. Added new commands to add and remove hostmasks. Kept the table column names the same so as to not break back-compatability.

I have tested adding and removing several hostmasks for multiple users and checked that it does auto-op them correctly, looks good!
2014-06-08 08:34:17 +01:00
Alexey Sokolov 638b3b58da Merge branch 'master' of github.com:znc/znc 2014-06-01 21:10:40 +01:00
Alexey Sokolov a3f4f1ebd9 Merge commit 'refs/pull/557/head' of github.com:znc/znc 2014-06-01 21:06:25 +01:00
Vasily Fomin 4338ae5cc5 Show empty checkbox if module can be loaded by the topic column.
Fix const correctnes of the CModInfo::SupportsType method.
2014-06-01 21:37:39 +02:00
Alexey Sokolov 4c7a41e1ec Merge pull request #561 from Xe/master
modules/autoreply: Prefer NOTICE over PRIVMSG
2014-06-01 19:22:56 +01:00
Sam Dodrill 9246dc3da4 modules/autoreply: Prefer NOTICE over PRIVMSG
Fixes RFC 1459 compliance and helps prevent bot loops between ZNC and
other chatbots.

Closes issue #556
2014-06-01 10:35:02 -07:00