From 91e2f81c99afa4a396e6e72e4273da52ff505fb8 Mon Sep 17 00:00:00 2001 From: Valery Yatsko Date: Wed, 2 Apr 2008 04:19:12 +0400 Subject: [PATCH] Prevent cork usage as charybdis doesn't have its support --- src/cache.c | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/cache.c b/src/cache.c index 2f3a6e52..d0a3b355 100644 --- a/src/cache.c +++ b/src/cache.c @@ -32,18 +32,16 @@ * $Id: cache.c 25119 2008-03-13 16:57:05Z androsyn $ */ -#include "stdinc.h" -#include "ratbox_lib.h" -#include "struct.h" -#include "s_conf.h" -#include "client.h" -#include "hash.h" -#include "irc_dictionary.h" -#include "cache.h" -#include "match.h" -#include "ircd.h" +#include "stdinc.h" +#include "ircd_defs.h" +#include "common.h" +#include "s_conf.h" +#include "client.h" +#include "hash.h" +#include "cache.h" +#include "sprintf_irc.h" +#include "irc_dictionary.h" #include "numeric.h" -#include "send.h" struct cachefile *user_motd = NULL; struct cachefile *oper_motd = NULL; @@ -256,7 +254,7 @@ send_user_motd(struct Client *source_p) sendto_one(source_p, form_str(ERR_NOMOTD), myname, nick); return; } - SetCork(source_p); + sendto_one(source_p, form_str(RPL_MOTDSTART), myname, nick, me.name); RB_DLINK_FOREACH(ptr, user_motd->contents.head) @@ -264,7 +262,7 @@ send_user_motd(struct Client *source_p) lineptr = ptr->data; sendto_one(source_p, form_str(RPL_MOTD), myname, nick, lineptr->data); } - ClearCork(source_p); + sendto_one(source_p, form_str(RPL_ENDOFMOTD), myname, nick); }