From a594d0e95cfc50896f5682f8772af51f78e88861 Mon Sep 17 00:00:00 2001 From: hairball Date: Tue, 27 Oct 2009 21:59:52 -0400 Subject: [PATCH] Small typos and doc fixes. Signed-off-by: James Vega --- docs/CONFIGURATION | 2 +- docs/PLUGIN_TUTORIAL | 2 +- plugins/Nickometer/plugin.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/CONFIGURATION b/docs/CONFIGURATION index 85aedf39b..f1c430a1c 100644 --- a/docs/CONFIGURATION +++ b/docs/CONFIGURATION @@ -87,7 +87,7 @@ this:: bots snarfing the same URLs and having the snarfed URL in the output of the snarf message. (Current value: 10.0) -Pretty simply, eh? +Pretty simple, eh? Now if you're curious what the current value of a configuration variable is, you'll use the ``config`` command with one argument, the name of the diff --git a/docs/PLUGIN_TUTORIAL b/docs/PLUGIN_TUTORIAL index a6634bb28..c6a9fbb47 100644 --- a/docs/PLUGIN_TUTORIAL +++ b/docs/PLUGIN_TUTORIAL @@ -287,7 +287,7 @@ random number from our RNG and takes no arguments. Here's what that looks like: Returns the next random number from the random number generator. """ irc.reply(str(self.rng.random())) - random = wrap(random) + random = wrap(random) And that's it. Now here are the important points. diff --git a/plugins/Nickometer/plugin.py b/plugins/Nickometer/plugin.py index 9eaeb200c..ec24737ff 100644 --- a/plugins/Nickometer/plugin.py +++ b/plugins/Nickometer/plugin.py @@ -217,7 +217,7 @@ def nickometer(self, irc, msg, args, nick): percentage = 100 * (1 + math.tanh((score - 400.0) / 400.0)) * \ (1 - 1 / (1 + score / 5.0)) / 2 - # if it's above 99.9%, show as many digits as is insteresting + # if it's above 99.9%, show as many digits as is interesting score_string=re.sub('(99\\.9*\\d|\\.\\d).*','\\1',`percentage`) irc.reply('The "lame nick-o-meter" reading for "%s" is %s%%.' %