Module: ngircd.git Branch: master Commit: d38d153f51738da31d40036c7c48b32d82234018 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=d38d1...
Author: Alexander Barton alex@barton.de Date: Sat Jan 26 16:52:41 2013 +0100
Streamline punctuation of log messages
Make sure that all log messages end with a correct punctuation mark.
The rules for formatting log messages are:
1. Add punctuation marks to all messages passed to the actual logging functions like Log() and LogDebug(). 2. Don't add any punctuation marks to messages that are stored in variables for later use or are passed over the network. 3. IP addresses, DNS host names and IRC server names should be quoted. 4. Messages originating in the network should be quoted (at least if they are "untrusted" or variable).
Most probably this patch doesn't fix all mistakes, but it should be a good starting point ...
---
src/ngircd/channel.c | 4 ++-- src/ngircd/client.c | 41 ++++++++++++++++++++++++++--------------- src/ngircd/conn.c | 29 +++++++++++++---------------- src/ngircd/io.c | 2 +- src/ngircd/irc-login.c | 11 ++++++----- src/ngircd/irc-server.c | 4 ++-- src/ngircd/irc.c | 2 +- src/ngircd/ngircd.c | 22 ++++++++++++---------- 8 files changed, 63 insertions(+), 52 deletions(-)
Diff: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commitdiff;h=d...
ngircd-commits@lists.barton.de