mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-03 04:50:43 +01:00
Small typos and doc fixes.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
a453f56284
commit
a594d0e95c
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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%%.' %
|
||||
|
Loading…
x
Reference in New Issue
Block a user