* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
- *
- * $Id: m_set.c 3406 2007-04-13 19:06:53Z jilles $
*/
/* rewritten by jdc */
#include "numeric.h"
#include "s_serv.h"
#include "send.h"
-#include "common.h"
#include "channel.h"
#include "s_conf.h"
#include "s_newconf.h"
#include "parse.h"
#include "modules.h"
-static int mo_set(struct Client *, struct Client *, int, const char **);
+static const char set_desc[] = "Provides the SET command to change server parameters";
+
+static void mo_set(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
struct Message set_msgtab = {
- "SET", 0, 0, 0, MFLG_SLOW,
+ "SET", 0, 0, 0, 0,
{mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_set, 0}}
};
mapi_clist_av1 set_clist[] = { &set_msgtab, NULL };
-DECLARE_MODULE_AV1(set, NULL, NULL, set_clist, NULL, NULL, "$Revision: 3406 $");
+DECLARE_MODULE_AV2(set, NULL, NULL, set_clist, NULL, NULL, NULL, NULL, set_desc);
/* Structure used for the SET table itself */
struct SetStruct
* mo_set - SET command handler
* set options while running
*/
-static int
-mo_set(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+static void
+mo_set(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
int newval;
int i, n;
wants_char ? "string, " : ""),
(set_cmd_table[i].
wants_char ? "int" : ""));
- return 0;
+ return;
}
if(parc <= 2)
":Value less than 0 illegal for %s",
set_cmd_table[i].name);
- return 0;
+ return;
}
}
else
newval = -1;
set_cmd_table[i].handler(source_p, arg, newval);
- return 0;
+ return;
}
}
* found within set_cmd_table.
*/
sendto_one_notice(source_p, ":Variable not found.");
- return 0;
+ return;
}
list_quote_commands(source_p);
-
- return 0;
}