projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New silcconfig library and server parser. Merged silc-newconfig-final.patch.
[silc.git]
/
apps
/
silcd
/
packet_send.c
diff --git
a/apps/silcd/packet_send.c
b/apps/silcd/packet_send.c
index 2c8786c3a5ada9eafd45c8a1fb44ca8b75334be4..d2d21517068d73afe44e4b0cf78d543a2fad3669 100644
(file)
--- a/
apps/silcd/packet_send.c
+++ b/
apps/silcd/packet_send.c
@@
-1036,13
+1036,14
@@
void silc_server_send_private_message(SilcServer server,
void silc_server_send_motd(SilcServer server,
SilcSocketConnection sock)
{
void silc_server_send_motd(SilcServer server,
SilcSocketConnection sock)
{
- char *motd;
+ char *motd
, *motd_file = NULL
;
uint32 motd_len;
uint32 motd_len;
- if (server->config
&& server->config->motd &&
- server->config->motd->motd_file) {
+ if (server->config
)
+ motd_file = server->config->server_info->motd_file;
- motd = silc_file_readfile(server->config->motd->motd_file, &motd_len);
+ if (motd_file) {
+ motd = silc_file_readfile(motd_file, &motd_len);
if (!motd)
return;
if (!motd)
return;