From 87d8d60e2eecdce1f07c4d0fd31eedbc97f14fb5 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 20 Jul 2004 07:06:52 +0000 Subject: [PATCH] Oops, forgot to commit this with the Note commits. --- src/callbacks.py | 3 ++- src/conf.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index a63918dc8..304644450 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -426,8 +426,9 @@ class RichReplyMethods(object): v = conf.supybot.replies.notRegistered.get(self.msg.args[0])() self.error(self.__makeReply(v, s), **kwargs) - def errorNoUser(self, s='', **kwargs): + def errorNoUser(self, s='', name='that user', **kwargs): v = conf.supybot.replies.noUser.get(self.msg.args[0])() + v = v % name self.error(self.__makeReply(v, s), **kwargs) def errorRequiresPrivacy(self, s='', **kwargs): diff --git a/src/conf.py b/src/conf.py index 2ff083ed1..9abece126 100644 --- a/src/conf.py +++ b/src/conf.py @@ -396,7 +396,7 @@ registerChannelValue(supybot.replies, 'incorrectAuthentication', and neither credential is correct.""")) registerChannelValue(supybot.replies, 'noUser', - registry.NormalizedString("""I can't find that user in my user + registry.NormalizedString("""I can't find %s in my user database. If you didn't give a user name, then I might not know what your user is, and you'll need to identify before this command might work.""", """Determines what error message the bot replies with when someone tries