if (!(snp=getnickbynick(RQ_SNICK))) {
sendnoticetouser(rqnick, tnp,
- "Error: Cannot find %s on the network. "
- "Please request again later.", RQ_SNICK);
+ "Cannot find %s on the network. "
+ "Please try your request again later.", RQ_SNICK);
free(req);
return;
}
- sendnoticetouser(rqnick, tnp, "Requirements met, %s should be added. "
- "Contact #help should further assistance be required.",
- RQ_SNICK);
+ sendnoticetouser(rqnick, tnp, "Success! %s has been added to '%s' "
+ "(contact #help if you require further assistance).",
+ RQ_SNICK, req->cip->name->content);
/* auth */
user = (sstring *)getcopyconfigitem("request", "user", "R", 30);
int qr_requests(nick *rqnick, nick *sender, channel *cp, nick *qnick) {
chanindex *cip = cp->index;
- int who = 0;
requestrec *nextreq, *lastreq;
- if (rq_isspam(sender)) {
- sendnoticetouser(rqnick, sender, "Error: Do not flood the request system."
- " Try again in %s.", rq_longtoduration(rq_blocktime(sender)));
-
- return RQ_ERROR;
- }
-
/* check which service is on the channel */
if (getnumerichandlefromchanhash(cp->users, qnick->numeric) != NULL) {
- /* we've found Q */
- who = QR_Q;
-
/* Request stats from Q */
sendmessagetouser(rqnick, qnick, "CHANLEV %s", cip->name->content);
lastreqq = lastreq;
sendnoticetouser(rqnick, sender,
- "Checking your %s access. "
+ "Checking your %s access in '%s'. "
"This may take a while, please be patient...",
- RQ_QNICK);
+ RQ_QNICK, cip->name->content);
return RQ_UNKNOWN;
}
void qr_requeststats(nick *rqnick, nick *np) {
sendnoticetouser(rqnick, np, "- Suspended (S): %d", qr_suspended);
- sendnoticetouser(rqnick, np, "- No chanstats (S): %d", qr_nohist);
- sendnoticetouser(rqnick, np, "- Too small (S): %d", qr_toosmall);
- sendnoticetouser(rqnick, np, "- User was not on chanlev (S): %d", qr_nochanlev);
- sendnoticetouser(rqnick, np, "- User was not the owner (S): %d", qr_notowner);
+ sendnoticetouser(rqnick, np, "- No chanstats (S): %d", qr_nohist);
+ sendnoticetouser(rqnick, np, "- Too small (S): %d", qr_toosmall);
+ sendnoticetouser(rqnick, np, "- User was not on chanlev (S): %d", qr_nochanlev);
+ sendnoticetouser(rqnick, np, "- User was not the owner (S): %d", qr_notowner);
sendnoticetouser(rqnick, np, "- A: %d", qr_a);
sendnoticetouser(rqnick, np, "- B: %d", qr_b);
sendnoticetouser(rqnick, np, "- C: %d", qr_c);