*
* $Id$
*/
+#include "config.h"
+
#include "ircd_reply.h"
#include "client.h"
#include "ircd.h"
vd.vd_format = pattern;
va_start(vd.vd_args, pattern);
- sendcmdto_flag_butone(&me, CMD_DESYNCH, NULL, FLAGS_DEBUG,
- ":Protocol Violation from %s: %v", cptr->name, &vd);
+ sendwallto_group_butone(&me, WALL_DESYNCH, NULL,
+ "Protocol Violation from %s: %v", cli_name(cptr), &vd);
va_end(vd.vd_args);
return 0;
int need_more_params(struct Client* cptr, const char* cmd)
{
- if (!MyUser(cptr))
- protocol_violation(cptr,"Not enough parameters for %s",cmd);
send_reply(cptr, ERR_NEEDMOREPARAMS, cmd);
return 0;
}
assert(0 != vd.vd_format);
/* build buffer */
- mb = msgq_make(to->from, "%:#C %s %C %v", &me, num->str, to, &vd);
+ mb = msgq_make(cli_from(to), "%:#C %s %C %v", &me, num->str, to, &vd);
va_end(vd.vd_args);
return 0; /* convenience return */
}
-int send_admin_info(struct Client* sptr)
-{
- const struct LocalConf* admin = conf_get_local();
- assert(0 != sptr);
-
- send_reply(sptr, RPL_ADMINME, me.name);
- send_reply(sptr, RPL_ADMINLOC1, admin->location1);
- send_reply(sptr, RPL_ADMINLOC2, admin->location2);
- send_reply(sptr, RPL_ADMINEMAIL, admin->contact);
- return 0;
-}