#include "s_conf.h"
#include "s_newconf.h"
#include "hash.h"
-#include "s_log.h"
-#include "sprintf_irc.h"
+#include "logger.h"
static int mo_resv(struct Client *, struct Client *, int, const char **);
static int ms_resv(struct Client *, struct Client *, int, const char **);
/*
* mo_resv()
- * parv[0] = sender prefix
* parv[1] = channel/nick to forbid
* parv[2] = reason
*/
}
/* ms_resv()
- * parv[0] = sender prefix
* parv[1] = target server
* parv[2] = channel/nick to forbid
* parv[3] = reason
ms_resv(struct Client *client_p, struct Client *source_p,
int parc, const char *parv[])
{
- /* parv[0] parv[1] parv[2] parv[3]
- * oper target server resv reason
+ /* source_p parv[1] parv[2] parv[3]
+ * oper target server resv reason
*/
propagate_resv(source_p, parv[1], 0, parv[2], parv[3]);
return;
}
+ if(strchr(name, ','))
+ {
+ sendto_one_notice(source_p,
+ ":Invalid character ',' in channel RESV");
+ return;
+ }
+
if(strchr(reason, '"'))
{
sendto_one_notice(source_p,
/*
* mo_unresv()
- * parv[0] = sender prefix
* parv[1] = channel/nick to unforbid
*/
static int
}
/* ms_unresv()
- * parv[0] = sender prefix
* parv[1] = target server
* parv[2] = resv to remove
*/
static int
ms_unresv(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
- /* parv[0] parv[1] parv[2]
- * oper target server resv to remove
+ /* source_p parv[1] parv[2]
+ * oper target server resv to remove
*/
propagate_generic(source_p, "UNRESV", parv[1], CAP_CLUSTER,
"%s", parv[2]);
break;
}
- strlcpy(buff, buf, sizeof(buff));
+ rb_strlcpy(buff, buf, sizeof(buff));
if((p = strchr(buff, '\n')) != NULL)
*p = '\0';