]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - cmdhelp.patch
Add opernowildbadchan patch - disallows wildcards in badchan set by oper
[irc/quakenet/snircd-patchqueue.git] / cmdhelp.patch
CommitLineData
12e82c05 1make /HELP <command> work - oper only feature?
2need to make small test case to see how hard/easy this would be to add.
3
4diff -r ce13b0a1253e ircd/m_help.c
5--- a/ircd/m_help.c Wed Jan 14 14:19:43 2009 +0100
6+++ b/ircd/m_help.c Wed Jan 14 15:01:46 2009 +0100
7@@ -100,7 +100,7 @@
8 int m_help(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
9 {
10 int i;
11-
12+/* check here for param and find command, then call the function set for that entry? */
13 for (i = 0; msgtab[i].cmd; i++)
14 sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :%s", sptr, msgtab[i].cmd);
15 return 0;
16diff -r ce13b0a1253e ircd/parse.c
17--- a/ircd/parse.c Wed Jan 14 14:19:43 2009 +0100
18+++ b/ircd/parse.c Wed Jan 14 15:01:46 2009 +0100
19@@ -105,6 +105,7 @@
20 static struct MessageTree tok_tree;
21
22 /** Array of all supported commands. */
23+/* add mh_<command> here? mh = message help */
24 struct Message msgtab[] = {
25 {
26 MSG_PRIVATE,