if (NULL == (file = fbopen(filename, "r"))) {
send_reply(sptr, ERR_NOMOTD);
- send_reply(sptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP,
+ send_reply(sptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP,
":Connection from your host is refused on this server.");
return;
}
*tmp = '\0';
send_reply(sptr, RPL_MOTD, line);
}
- send_reply(sptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP,
+ send_reply(sptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP,
":Connection from your host is refused on this server.");
fbclose(file);
}
}
}
if (reply[0])
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP, reply);
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, reply);
else if (tmp) {
if (EmptyString(tmp->passwd))
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP,
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP,
":Connection from your host is refused on this server.");
else {
if (*tmp->passwd == '"') {
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%*s.",
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%*s.",
strlen(tmp->passwd + 1) - 1, tmp->passwd + 1);
}
else if (*tmp->passwd == '!')
#ifdef COMMENT_IS_FILE
killcomment(cptr, cptr->name, tmp->passwd);
#else
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.",
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.",
tmp->passwd);
#endif
}
/* find active glines */
/* added a check against the user's IP address to find_gline() -Kev */
else if ((agline = gline_lookup(cptr)) && GlineIsActive(agline))
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.",
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.",
GlineReason(agline));
else
agline = NULL; /* if a gline was found, it was inactive */