Small typos and doc fixes.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
hairball 2009-10-27 21:59:52 -04:00 committed by James Vega
parent a453f56284
commit a594d0e95c
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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.

View File

@ -217,7 +217,7 @@ class Nickometer(callbacks.Plugin):
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%%.' %