]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Prevent cork usage as charybdis doesn't have its support
authorValery Yatsko <redacted>
Wed, 2 Apr 2008 00:19:12 +0000 (04:19 +0400)
committerValery Yatsko <redacted>
Wed, 2 Apr 2008 00:19:12 +0000 (04:19 +0400)
src/cache.c

index 2f3a6e5223ead1a708df87d376cef699740e408b..d0a3b355de65f5b69c5201a3a9c9c78fc03c4293 100644 (file)
  * $Id: cache.c 25119 2008-03-13 16:57:05Z androsyn $\r
  */\r
 \r
-#include "stdinc.h"\r
-#include "ratbox_lib.h"\r
-#include "struct.h"\r
-#include "s_conf.h"\r
-#include "client.h"\r
-#include "hash.h"\r
-#include "irc_dictionary.h"\r
-#include "cache.h"\r
-#include "match.h"\r
-#include "ircd.h"\r
+#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"\r
-#include "send.h"\r
 \r
 struct cachefile *user_motd = NULL;\r
 struct cachefile *oper_motd = NULL;\r
@@ -256,7 +254,7 @@ send_user_motd(struct Client *source_p)
                sendto_one(source_p, form_str(ERR_NOMOTD), myname, nick);\r
                return;\r
        }\r
-       SetCork(source_p);\r
+\r
        sendto_one(source_p, form_str(RPL_MOTDSTART), myname, nick, me.name);\r
 \r
        RB_DLINK_FOREACH(ptr, user_motd->contents.head)\r
@@ -264,7 +262,7 @@ send_user_motd(struct Client *source_p)
                lineptr = ptr->data;\r
                sendto_one(source_p, form_str(RPL_MOTD), myname, nick, lineptr->data);\r
        }\r
-       ClearCork(source_p);\r
+\r
        sendto_one(source_p, form_str(RPL_ENDOFMOTD), myname, nick);\r
 }\r
 \r