struct Client *acptr;
char *to;
+ if (MustBeOper && !IsPrivileged(from))
+ {
+ send_reply(from, ERR_NOPRIVILEGES);
+ return HUNTED_NOSUCH;
+ }
/* Assume it's me, if no server or an unregistered client */
if (parc <= server || EmptyString((to = parv[server])) || IsUnknown(from))
return (HUNTED_ISME);
char featurebuf[512];
ircd_snprintf(0, featurebuf, sizeof(featurebuf), FEATURES1, FEATURESVALUES1);
- send_reply(sptr, RPL_ISUPPORT, featurebuf);
+ send_reply(cptr, RPL_ISUPPORT, featurebuf);
ircd_snprintf(0, featurebuf, sizeof(featurebuf), FEATURES2, FEATURESVALUES2);
- send_reply(sptr, RPL_ISUPPORT, featurebuf);
+ send_reply(cptr, RPL_ISUPPORT, featurebuf);
return 0; /* convenience return, if it's ever needed */
}