tweaks done while working on CloudWeb
This commit is contained in:
parent
51bcddd44a
commit
7ec200105a
2 changed files with 5 additions and 5 deletions
|
@ -87,7 +87,7 @@ def remember(inp, nick='', db=None, say=None, input=None, notice=None):
|
||||||
% data.replace('"', "''"))
|
% data.replace('"', "''"))
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
notice('Remembered!')
|
notice('Factoid created!')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,25 +4,25 @@ from util import hook
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def md5(inp):
|
def md5(inp):
|
||||||
"hash <text> -- Returns a md5 hash of <text>."
|
"md5 <text> -- Returns a md5 hash of <text>."
|
||||||
return hashlib.md5(inp).hexdigest()
|
return hashlib.md5(inp).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def sha1(inp):
|
def sha1(inp):
|
||||||
"hash <text> -- Returns a sha1 hash of <text>."
|
"sha1 <text> -- Returns a sha1 hash of <text>."
|
||||||
return hashlib.sha1(inp).hexdigest()
|
return hashlib.sha1(inp).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def sha256(inp):
|
def sha256(inp):
|
||||||
"hash <text> -- Returns a sha256 hash of <text>."
|
"sha256 <text> -- Returns a sha256 hash of <text>."
|
||||||
return hashlib.sha256(inp).hexdigest()
|
return hashlib.sha256(inp).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def sha512(inp):
|
def sha512(inp):
|
||||||
"hash <text> -- Returns a sha512 hash of <text>."
|
"sha512 <text> -- Returns a sha512 hash of <text>."
|
||||||
return hashlib.sha512(inp).hexdigest()
|
return hashlib.sha512(inp).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue