mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
plugins/Math: Quote some example strings so the STX version is formatted better.
This commit is contained in:
parent
9d99590431
commit
099231df05
@ -154,8 +154,8 @@ class Math(callbacks.Plugin):
|
||||
Returns the value of the evaluated <math expression>. The syntax is
|
||||
Python syntax; the type of arithmetic is floating point. Floating
|
||||
point arithmetic is used in order to prevent a user from being able to
|
||||
crash to the bot with something like 10**10**10**10. One consequence
|
||||
is that large values such as 10**24 might not be exact.
|
||||
crash to the bot with something like '10**10**10**10'. One consequence
|
||||
is that large values such as '10**24' might not be exact.
|
||||
"""
|
||||
if text != text.translate(utils.str.chars, '_[]'):
|
||||
irc.error('There\'s really no reason why you should have '
|
||||
|
Loading…
Reference in New Issue
Block a user