String: Fix plugin for Python 3.

This commit is contained in:
Valentin Lorentz 2013-07-16 20:13:26 +00:00
parent cc56645cf9
commit 910244ef68

View File

@ -239,7 +239,7 @@ class String(callbacks.Plugin):
http://www.secure-hash-algorithm-md5-sha-1.co.uk/ for more information
about SHA.
"""
irc.reply(utils.crypt.sha(text).hexdigest())
irc.reply(utils.crypt.sha(text.encode('utf8')).hexdigest())
sha = wrap(sha, ['text'])
Class = String