X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_motd.c;h=f431df1e5a906a5a0f8db635c7df343ac7cab7d6;hb=refs%2Fheads%2Fupstream-ssl;hp=ba16ad602d4f0a5dd61ed98e5ae36dc47ed38902;hpb=995343b7b6c97bb8499f5c4b625c10601592d080;p=ircu2.10.12-pk.git diff --git a/ircd/m_motd.c b/ircd/m_motd.c index ba16ad6..f431df1 100644 --- a/ircd/m_motd.c +++ b/ircd/m_motd.c @@ -79,16 +79,12 @@ * note: it is guaranteed that parv[0]..parv[parc-1] are all * non-NULL pointers. */ -#if 0 -/* - * No need to include handlers.h here the signatures must match - * and we don't need to force a rebuild of all the handlers everytime - * we add a new one to the list. --Bleep - */ -#include "handlers.h" -#endif /* 0 */ +#include "config.h" + #include "client.h" #include "ircd.h" +#include "ircd_features.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "ircd_string.h" #include "match.h" @@ -102,7 +98,7 @@ #include "send.h" #include -#include +/* #include -- Now using assert in ircd_log.h */ /* * m_motd - generic message handler @@ -120,8 +116,8 @@ */ int m_motd(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) { - if (hunt_server_cmd(sptr, CMD_MOTD, cptr, 0, "%C", 1, parc, parv) != - HUNTED_ISME) + if (hunt_server_cmd(sptr, CMD_MOTD, cptr, feature_int(FEAT_HIS_REMOTE), "%C", 1, + parc, parv) != HUNTED_ISME) return 0; return motd_send(sptr);