]> arthur.barton.de Git - ngircd-alex.git/commit
ngircd: change MOTD file handling
authorFlorian Westphal <fw@strlen.de>
Wed, 11 Aug 2010 20:52:06 +0000 (22:52 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 12 Aug 2010 19:46:47 +0000 (21:46 +0200)
commit056de78e315a79edc1166649514bf8dfeb18abb1
tree0a54069829ad3aa388de6f09386c4666cd4e1098
parenta02bc9cc6f821a604f6ae4a865b0da8eec4da5a4
ngircd: change MOTD file handling

previously, the given MotdFile file was read whenever a client
requested it.

Change handling to read the MotdFile contents into memory once
during config file parsing.

Two side effects:
- changes to the MOTD file do not have any effect until ngircds
  configuration is reloaded
- MOTD file does no longer have to reside in the chroot directory
  (the MOTD contents will then not be re-read on reload in that case)
doc/sample-ngircd.conf
man/ngircd.conf.5.tmpl
src/ngircd/conf.c
src/ngircd/conf.h
src/ngircd/defines.h
src/ngircd/irc-info.c