From: Valery Yatsko Date: Wed, 2 Apr 2008 00:19:12 +0000 (+0400) Subject: Prevent cork usage as charybdis doesn't have its support X-Git-Tag: charybdis-3.0.0-beta1~227^2~2 X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/commitdiff_plain/a83914b3fcbc15cb24156f875781b8c114db5503?hp=419f2d0c123113815318c9e2459562b853077adf Prevent cork usage as charybdis doesn't have its support --- diff --git a/src/cache.c b/src/cache.c index 2f3a6e5..d0a3b35 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); }