#include "whowas.h"
#include "monitor.h"
-static int me_realhost(struct Client *, struct Client *, int, const char **);
-static int ms_chghost(struct Client *, struct Client *, int, const char **);
-static int me_chghost(struct Client *, struct Client *, int, const char **);
-static int mo_chghost(struct Client *, struct Client *, int, const char **);
+static int me_realhost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int ms_chghost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int me_chghost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int mo_chghost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
struct Message realhost_msgtab = {
- "REALHOST", 0, 0, 0, MFLG_SLOW,
+ "REALHOST", 0, 0, 0, 0,
{mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_realhost, 2}, mg_ignore}
};
struct Message chghost_msgtab = {
- "CHGHOST", 0, 0, 0, MFLG_SLOW,
+ "CHGHOST", 0, 0, 0, 0,
{mg_ignore, mg_not_oper, {ms_chghost, 3}, {ms_chghost, 3}, {me_chghost, 3}, {mo_chghost, 3}}
};
* race condition.
*/
static int
-me_realhost(struct Client *client_p, struct Client *source_p,
+me_realhost(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
int parc, const char *parv[])
{
if (!IsPerson(source_p))
* parv[2] = host
*/
static int
-ms_chghost(struct Client *client_p, struct Client *source_p,
+ms_chghost(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
int parc, const char *parv[])
{
struct Client *target_p;
* parv[2] = host
*/
static int
-me_chghost(struct Client *client_p, struct Client *source_p,
+me_chghost(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
int parc, const char *parv[])
{
struct Client *target_p;
* No, make it toggleable via ./configure. --nenolod
*/
static int
-mo_chghost(struct Client *client_p, struct Client *source_p,
+mo_chghost(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
int parc, const char *parv[])
{
#ifdef ENABLE_OPER_CHGHOST