From ed5c208488aaebda407884e6bac16332d1c28e22 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Thu, 2 Oct 2008 23:16:37 +0000 Subject: [PATCH] Make messages.c compile. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1376 5417fbe8-f217-4b02-8779-1006273d7864 --- src/messages.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/messages.c b/src/messages.c index 6f45b06e8..6894cd43d 100644 --- a/src/messages.c +++ b/src/messages.c @@ -120,8 +120,12 @@ int m_privmsg(const char *source, const char *receiver, const char *msg) if (!u) { alog("%s: user record for %s not found", msg, source); - ircdproto->SendMessage(receiver, source, + /* Two lookups naughty, however, this won't happen often. -- w00t */ + if (findbot(receiver)) + { + ircdproto->SendMessage(findbot(receiver), source, getstring(NULL, USER_RECORD_NOT_FOUND)); + } return MOD_CONT; }