mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
String: Strip all newline characters in base64 output.
This commit is contained in:
parent
7bba16a55e
commit
bcd39743f0
@ -101,6 +101,9 @@ class String(callbacks.Plugin):
|
|||||||
elif sys.version_info[0] >= 3 and isinstance(text, bytes):
|
elif sys.version_info[0] >= 3 and isinstance(text, bytes):
|
||||||
text = text.decode()
|
text = text.decode()
|
||||||
|
|
||||||
|
if encoding in ('base64', 'base64_codec'):
|
||||||
|
text = text.replace('\n', '')
|
||||||
|
|
||||||
# Reply
|
# Reply
|
||||||
irc.reply(text.rstrip('\n'))
|
irc.reply(text.rstrip('\n'))
|
||||||
encode = wrap(encode, ['something', 'text'])
|
encode = wrap(encode, ['something', 'text'])
|
||||||
|
Loading…
Reference in New Issue
Block a user