From: wiebe Date: Sat, 31 Jan 2009 17:53:53 +0000 (+0100) Subject: cmdhelp.patch add #include handlers.h to m_help.c to use mh_not_oper fuction from... X-Git-Url: https://jfr.im/git/irc/quakenet/snircd-patchqueue.git/commitdiff_plain/efbd1f639e9d190f96322d78fb3922645b2d21ab?ds=sidebyside cmdhelp.patch add #include handlers.h to m_help.c to use mh_not_oper fuction from there --- diff --git a/cmdhelp.patch b/cmdhelp.patch index 219b5e6..a7d275d 100644 --- a/cmdhelp.patch +++ b/cmdhelp.patch @@ -21,9 +21,9 @@ add function find_message_by_cmd to find the mh_* function to call ircd/parse.c add mh_* functions in the message table -diff -r a9a01fcf9bfb include/handlers.h ---- a/include/handlers.h Thu Jan 29 21:48:27 2009 +0100 -+++ b/include/handlers.h Thu Jan 29 21:50:11 2009 +0100 +diff -r 5a1e5e09c766 include/handlers.h +--- a/include/handlers.h Sat Jan 31 18:46:47 2009 +0100 ++++ b/include/handlers.h Sat Jan 31 18:51:08 2009 +0100 @@ -244,5 +244,77 @@ extern int ms_wallvoices(struct Client*, struct Client*, int, char*[]); extern int ms_whois(struct Client*, struct Client*, int, char*[]); @@ -102,9 +102,9 @@ diff -r a9a01fcf9bfb include/handlers.h + #endif /* INCLUDED_handlers_h */ -diff -r a9a01fcf9bfb include/ircd_handler.h ---- a/include/ircd_handler.h Thu Jan 29 21:48:27 2009 +0100 -+++ b/include/ircd_handler.h Thu Jan 29 21:50:11 2009 +0100 +diff -r 5a1e5e09c766 include/ircd_handler.h +--- a/include/ircd_handler.h Sat Jan 31 18:46:47 2009 +0100 ++++ b/include/ircd_handler.h Sat Jan 31 18:51:08 2009 +0100 @@ -36,6 +36,7 @@ SERVER_HANDLER, /**< Used for server conections. */ OPER_HANDLER, /**< Used for IRC operators. */ @@ -113,9 +113,9 @@ diff -r a9a01fcf9bfb include/ircd_handler.h LAST_HANDLER_TYPE /**< NUmber of handler types. */ } HandlerType; -diff -r a9a01fcf9bfb include/msg.h ---- a/include/msg.h Thu Jan 29 21:48:27 2009 +0100 -+++ b/include/msg.h Thu Jan 29 21:50:11 2009 +0100 +diff -r 5a1e5e09c766 include/msg.h +--- a/include/msg.h Sat Jan 31 18:46:47 2009 +0100 ++++ b/include/msg.h Sat Jan 31 18:51:08 2009 +0100 @@ -410,7 +410,7 @@ * parv = parameter variable array */ @@ -125,9 +125,9 @@ diff -r a9a01fcf9bfb include/msg.h */ MessageHandler handlers[LAST_HANDLER_TYPE]; }; -diff -r a9a01fcf9bfb include/numeric.h ---- a/include/numeric.h Thu Jan 29 21:48:27 2009 +0100 -+++ b/include/numeric.h Thu Jan 29 21:50:11 2009 +0100 +diff -r 5a1e5e09c766 include/numeric.h +--- a/include/numeric.h Sat Jan 31 18:46:47 2009 +0100 ++++ b/include/numeric.h Sat Jan 31 18:51:08 2009 +0100 @@ -292,6 +292,9 @@ #define RPL_MOTDSTART 375 #define RPL_ENDOFMOTD 376 @@ -154,9 +154,9 @@ diff -r a9a01fcf9bfb include/numeric.h /* RPL_LOGON 600 dalnet,unreal RPL_LOGOFF 601 dalnet,unreal RPL_WATCHOFF 602 dalnet,unreal -diff -r a9a01fcf9bfb include/parse.h ---- a/include/parse.h Thu Jan 29 21:48:27 2009 +0100 -+++ b/include/parse.h Thu Jan 29 21:50:11 2009 +0100 +diff -r 5a1e5e09c766 include/parse.h +--- a/include/parse.h Sat Jan 31 18:46:47 2009 +0100 ++++ b/include/parse.h Sat Jan 31 18:51:08 2009 +0100 @@ -15,6 +15,7 @@ extern int parse_client(struct Client *cptr, char *buffer, char *bufend); extern int parse_server(struct Client *cptr, char *buffer, char *bufend); @@ -165,9 +165,9 @@ diff -r a9a01fcf9bfb include/parse.h extern int register_mapping(struct s_map *map); extern int unregister_mapping(struct s_map *map); -diff -r a9a01fcf9bfb ircd/m_defaults.c ---- a/ircd/m_defaults.c Thu Jan 29 21:48:27 2009 +0100 -+++ b/ircd/m_defaults.c Thu Jan 29 21:50:11 2009 +0100 +diff -r 5a1e5e09c766 ircd/m_defaults.c +--- a/ircd/m_defaults.c Sat Jan 31 18:46:47 2009 +0100 ++++ b/ircd/m_defaults.c Sat Jan 31 18:51:08 2009 +0100 @@ -119,3 +119,18 @@ { return 0; @@ -187,10 +187,18 @@ diff -r a9a01fcf9bfb ircd/m_defaults.c +{ + return send_reply(sptr, SND_EXPLICIT | RPL_HELP, "%s :This command is for servers only.", parv[1]); +} -diff -r a9a01fcf9bfb ircd/m_help.c ---- a/ircd/m_help.c Thu Jan 29 21:48:27 2009 +0100 -+++ b/ircd/m_help.c Thu Jan 29 21:50:11 2009 +0100 -@@ -90,6 +90,7 @@ +diff -r 5a1e5e09c766 ircd/m_help.c +--- a/ircd/m_help.c Sat Jan 31 18:46:47 2009 +0100 ++++ b/ircd/m_help.c Sat Jan 31 18:51:08 2009 +0100 +@@ -82,6 +82,7 @@ + #include "config.h" + + #include "client.h" ++#include "handlers.h" + #include "hash.h" + #include "ircd.h" + #include "ircd_log.h" +@@ -90,6 +91,7 @@ #include "msg.h" #include "numeric.h" #include "numnicks.h" @@ -198,7 +206,7 @@ diff -r a9a01fcf9bfb ircd/m_help.c #include "send.h" /* #include -- Now using assert in ircd_log.h */ -@@ -100,9 +101,1212 @@ +@@ -100,9 +102,1212 @@ int m_help(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) { int i; @@ -1413,9 +1421,9 @@ diff -r a9a01fcf9bfb ircd/m_help.c + } + return 0; +} -diff -r a9a01fcf9bfb ircd/parse.c ---- a/ircd/parse.c Thu Jan 29 21:48:27 2009 +0100 -+++ b/ircd/parse.c Thu Jan 29 21:50:11 2009 +0100 +diff -r 5a1e5e09c766 ircd/parse.c +--- a/ircd/parse.c Sat Jan 31 18:46:47 2009 +0100 ++++ b/ircd/parse.c Sat Jan 31 18:51:08 2009 +0100 @@ -110,534 +110,534 @@ MSG_PRIVATE, TOK_PRIVATE, @@ -2157,9 +2165,9 @@ diff -r a9a01fcf9bfb ircd/parse.c add_msg_element(&msg_tree, msg, msg->cmd); map->msg = msg; -diff -r a9a01fcf9bfb ircd/s_err.c ---- a/ircd/s_err.c Thu Jan 29 21:48:27 2009 +0100 -+++ b/ircd/s_err.c Thu Jan 29 21:50:11 2009 +0100 +diff -r 5a1e5e09c766 ircd/s_err.c +--- a/ircd/s_err.c Sat Jan 31 18:46:47 2009 +0100 ++++ b/ircd/s_err.c Sat Jan 31 18:51:08 2009 +0100 @@ -786,9 +786,9 @@ /* 376 */ { RPL_ENDOFMOTD, ":End of /MOTD command.", "376" },