rq_block *block;
if (!IsAccount(np)) {
- sendnoticetouser(rqnick, np, "Error: You must be authed.");
+ sendnoticetouser(rqnick, np, "Error: You must be authed to perform a service request.");
return RQ_ERROR;
}
*cp = findchannel(channelname);
if (*cp == NULL) {
- sendnoticetouser(rqnick, np, "Error: Channel %s does not exist.",
+ sendnoticetouser(rqnick, np, "Error: Channel '%s' does not exist on the network.",
channelname);
return RQ_ERROR;
if (*qnick == NULL || findserver(RQ_QSERVER) < 0) {
sendnoticetouser(rqnick, np, "Error: %s does not seem to be online. "
- "Try again later.", RQ_QNICK);
+ "Please try again later.", RQ_QNICK);
return RQ_ERROR;
}
/* only say when block expires if <7 days */
if ( block->expires < getnettime() + 3600 * 24 * 7) {
sendnoticetouser(rqnick, np, "Error: You are not allowed to request a "
- "service to this channel. Keep waiting for at least %s before you try again.",
- rq_longtoduration(block->expires - getnettime()));
+ "service to '%s'. Keep waiting for at least %s before you try again.",
+ channelname, rq_longtoduration(block->expires - getnettime()));
/* give them another 5 minutes to think about it */
block->expires += 300;
rq_saveblocks();
} else {
sendnoticetouser(rqnick, np, "Error: You are not allowed to request a "
- "service to this channel.");
+ "service to '%s'.", channelname);
}
sendnoticetouser(rqnick, np, "Reason: %s", block->reason->content);
now_ts = time(NULL);
strftime(now, sizeof(now), "%c", localtime(&now_ts));
- fprintf(rq_logfd, "%s: request (%s) for %s from %s: Request was %s.\n", now, RQ_QNICK, cp->index->name->content, np->nick, (retval == RQ_OK) ? "accepted" : "denied");
+ fprintf(rq_logfd, "%s: request (%s) for %s from %s!%s@%s%s%s: Request was %s.\n",
+ now, RQ_QNICK, cp->index->name->content,
+ np->nick, np->ident, np->host->name->content, IsAccount(np)?"/":"", IsAccount(np)?np->authname:"",
+ (retval == RQ_OK) ? "accepted" : "denied");
fflush(rq_logfd);
}
if (snick == NULL || findserver(RQ_SSERVER) < 0) {
sendnoticetouser(rqnick, np, "Error: %s does not seem to be online. "
- "Try again later.", RQ_SNICK);
+ "Please try again later.", RQ_SNICK);
rq_failed++;
cp = findchannel(cargv[0]);
if (cp == NULL) {
- sendnoticetouser(rqnick, np, "Error: No such channel.");
+ sendnoticetouser(rqnick, np, "Error: Channel '%s' does not exist on the network.",
+ cargv[0]);
return CMD_ERROR;
}
hand = getnumerichandlefromchanhash(cp->users, user->numeric);
if (!hand) {
- sendnoticetouser(rqnick, np, "Error: User %s is not on channel %s.", user->nick, cargv[0]);
+ sendnoticetouser(rqnick, np, "Error: User %s is not on channel '%s'.", user->nick, cargv[0]);
return CMD_ERROR;
}
for (a=0;a<cp->users->hashsize;a++) {
if ((cp->users->content[a] != nouser) && (cp->users->content[a] & CUMODE_OP)) {
- sendnoticetouser(rqnick, np, "There are ops on channel %s. This command can only be"
+ sendnoticetouser(rqnick, np, "There are ops on channel '%s'. This command can only be"
" used if there are no ops.", cargv[0]);
return CMD_ERROR;