#include "ircd.h"
#include "ircd_chattr.h"
#include "ircd_reply.h"
+#include "ircd_features.h"
#include "ircd_string.h"
#include "match.h"
#include "msg.h"
assert(0 != text);
assert(0 != server);
- if ((acptr = FindServer(server + 1)) == NULL ||
- !IsChannelService(acptr))
+ if ((acptr = FindServer(server + 1)) == NULL || !IsChannelService(acptr))
{
send_reply(sptr, ERR_NOSUCHNICK, name);
return;
* nickname addressed?
*/
if (0 == (acptr = findNUser(name)) || !IsUser(acptr)) {
- send_reply(sptr, SND_EXPLICIT | ERR_NOSUCHNICK, "* :Target left " NETWORK ". "
- "Failed to deliver: [%.20s]", text);
+ send_reply(sptr, SND_EXPLICIT | ERR_NOSUCHNICK, "* :Target left %s. "
+ "Failed to deliver: [%.20s]", feature_str(FEAT_NETWORK),
+ text);
return;
}
if (is_silenced(sptr, acptr))