summaryrefslogtreecommitdiff
path: root/src/messages.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 23:16:37 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 23:16:37 +0000
commited5c208488aaebda407884e6bac16332d1c28e22 (patch)
tree3502f1b27eb91d77930d962f6609849671265064 /src/messages.c
parent750352d122f64cbbbd16cf1a060b58703cf6f9e4 (diff)
Make messages.c compile.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1376 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/messages.c')
-rw-r--r--src/messages.c6
1 files changed, 5 insertions, 1 deletions
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;
}