Commit Graph

44 Commits

Author SHA1 Message Date
Falk Seidel
d647eaabc0 Welcome to 2018
The same procedure as last year, Miss Sophie?
The same procedure as every year, James.

[skip ci]
2018-01-19 19:38:58 +00:00
Vladimir Panteleev
03c4c0b165 Use and propagate microsecond-precision timestamps to FormatTime
This enables sub-second precision timestamp formatting for logs and
clients without server-time.
2017-10-26 00:00:51 +00:00
Alexey Sokolov
e86efb08bd Fix build 2017-09-08 00:06:34 +01:00
Alexey Sokolov
d51159a330 Log: add ShowSettings command, rework Set command, #601
Make more strings translateable, #1354
2017-09-07 23:35:18 +01:00
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
Phansa
3189ce7f8a Welcome to 2017
Welcome to 2017

temp

temp2
2017-03-12 20:34:26 -04:00
Falk Seidel
8f73840e74 Welcome to 2016
🎆  Happy 2016 🎆
2016-01-01 20:11:21 +01: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
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
Walliski
54ab10a311 Removed AsLower from $USER and $NETWORK since these are case sensitive 2015-10-27 01:35:57 +02:00
Toon Schoenmakers
03e3920ced Add options for log module to hide joins, quits and nick changes.
Fix #601
Close #613
2015-08-23 21:20:36 +01:00
Alexey Sokolov
1a574f95ae Merge pull request #978 from alprs/log-timestamp
log: Add -timestamp option (cont.)
2015-08-23 20:38:42 +01:00
Andreas Lutro
c2201a59d6 work on log module argument parsing 2015-08-23 20:17:44 +02:00
J-P Nurmi
87bd738eb6 log: C++11 range-based for loops 2015-08-13 00:46:56 +02:00
Gustavo Zacarias
9a51195e91 Add <time.h> includes where appropiate
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
2015-08-06 11:20:54 -03:00
NuclearW
5ca8cb51ba log: Add -timestamp option
Allows users to define a new timestamp as formatted by strftime through CUtils::FormatTime
Additionally -sanitize is no longer necessarily the first argument, but -timestamp and the actual timestamp must be last as it can contain spaces.
2015-06-21 14:03:51 +02: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
539c519cce Mods: use case-insensitive wildcmp() for channel/host matching
Fixes #822
2015-02-23 22:35:46 +01:00
Falk Seidel
2e29d49a53 Welcome to 2015 2014-12-31 11:28:38 +01:00
J-P Nurmi
f9318d02cf modules: use override keyword
Resolves #736
2014-11-05 08:00:02 +01:00
J-P Nurmi
bbd393d84f log: add support for logging rules
By default, everything is logged. The first matching rule wins.
Negation (!) and wildcards (*) are supported.

For example, disable logging for all channels, except #znc:

    /msg *log setrules #znc !#*

Queries do not match either of the above rules, so they get logged.
2014-10-26 22:58:45 +01:00
J-P Nurmi
1bacec1dd3 Modules: use public API
Avoid accessing protected member variables directly, so
there's a chance of cleaning up the module API later.
2014-10-06 21:51:36 +02:00
Cameron Stephen
e570466683 Update Grammar on Modules section of ZNC. 2014-10-05 20:31:13 +02:00
Kyle Fuller
cf633ee435 [log] $WINDOW should be last because it could contain %
Thanks to @NuclearW for spotting
2014-09-30 18:28:20 +01:00
Mikaela Suomalainen
3f76b8fb1a log: use more clear defaults
Before log module creates everything in same directory and it gets messy
in some time.

Now log module creates directory in format $USER/$NETWORK/$WINDOW and
there log files for every day in ISO 8601 format, YYYY-MM-DD.log.
2014-09-13 15:53:32 +03: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
9cf61ac6d4 Argh, fuck it. Rename fixed (pointer) versions of OnMode to OnMode2 2014-04-12 08:51:04 +01:00
Alexey Sokolov
618d9c58a4 Fix chansaver's channel keys by adding other OnMode() hooks 2014-02-27 00:49:45 +00:00
Falk Seidel
f19b4caa43 Welcome to 2014 - year 10 with ZNC 2013-12-31 10:10:55 +01:00
dgw
3e1a2d9ea7 Implement permission inheritance in log module
Quick-and-dirty matching of permissions when new log directories are
created. Currently gets tripped up by the umask with some perms.
2013-08-21 00:50:15 +04:00
Alexey Sokolov
cec2fa66be Don't create folders with \ in log module
Also don't try to write files with ? in filename

Fix #377
2013-08-18 15:20:07 +04:00
Alexey Sokolov
b2dcad5fd4 Change ZNC license to Apache 2.0
The following people agreed with the change, in alphabetical order:
(people who approved in several ways are listed only once)
By email:
- Adam (from Anope)
- Austin Morton
- Brian Campbell
- Christian Walde
- Daniel Holbert
- Daniel Wallace
- Falk Seidel
- Heiko Hund
- Ingmar Runge
- Jim Hull
- Kyle Fuller
- Lee Aylward
- Martin Martimeo
- Matt Harper
- Michael J Edgar
- Michael Ziegler
- Nick Bebout
- Paul Driver
- Perry Nguyen
- Philippe (cycomate)
- Reuben Morais
- Roland Hieber
- Sebastian Ramacher
- Stefan Rado
- Stéphan Kochen
- Thomas Ward
- Toon Schoenmakers
- Veit Wahlich
- Wulf C. Krueger

By IRC:
- CNU
- Jonas Gorski
- Joshua M. Clulow
- Prozac/SHiZNO
- SilverLeo
- Uli Schlachter

At https://github.com/znc/znc/issues/311 :
- Alexey Sokolov
- Elizabeth Myers
- flakes
- Jens-Andre Koch
- Jyzee
- KindOne/ineedalifetoday
- Lee Williams
- Mantas Mikulėnas
- md-5
- Reed Loden

At the last few pull requests' comments:
- Allan Odgaard
- Jacob Baines
- Lluís Batlle i Rossell
- ravomavain
- protomouse

The following commits' authors didn't respond:
Trivial changes:
- f70f1086fd
- 4ca8b50e45

The changes which are not presented in master anymore:
- 5512ed2ea0
- 960a4498f7
- 0f739de2c0
- 7f53cc810b

Fix #311
Fix #218
2013-06-14 00:43:34 +04:00
Ravomavain
3ba4598994 Add -sanitize option to log module. 2013-05-20 12:23:40 +02:00
Alexey Sokolov
42cb0d7de7 It's 2013 now (few modules were forgotten :P) 2013-01-19 09:19:41 +07:00
Alexey Sokolov
0bb18481f6 Link log module to wiki.
Thanks to KindOne for reporting it.
2012-08-30 09:09:23 +07:00
Alexey Sokolov
62c9ac1a0b using in headers is evil :( 2012-07-26 20:46:11 +07:00
Alexey Sokolov
601b9a4cc6 Fix: Log module accepts arguments.
Thanks to tm512 for reporting that webadmin doesn't know that.
2012-06-16 16:35:05 +07:00
Alexey Sokolov
f0cab46c3f Merge https://github.com/znc/znc/pull/78 (TZ)
Conflicts:
	modules/admin.cpp
	src/User.cpp
2012-03-22 22:58:46 +07:00
Alexey Sokolov
355d5feb7a Move TZ-related code to own place. 2012-03-22 22:20:41 +07:00
Alexey Sokolov
ae68a5a608 Mods are network mods by default.
Network modules are the simplest ones.
2012-02-04 00:29:58 +07:00
Un1matr1x
73270ff023 Welcome in 2012 2012-01-01 09:30:19 +01:00
Allan Odgaard
eca0211bb8 Use time zone string instead of offset.
This is done by setting the TZ variable prior to calling localtime() or ctime().

There are a few calls to ctime()/localtime() which doesn’t adjust for time zone offset. This patch affects the behavior of these since the TZ variable is global.
2011-10-09 16:51:19 +02:00
Alexey Sokolov
e354c24ac1 Move ZNC headers into own directory.
Yes, this breaks backwards compatibility, so what?
It's already broken with network stuff anyway.
2011-09-23 03:31:58 +07:00
Uli Schlachter
57c4ccf4f2 Move log out of extra
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-16 11:07:36 +02:00