mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
core: avoid casting data to string if it is already an instance of basestring, in irc.reply.
This commit is contained in:
parent
7dba155038
commit
43a3285f48
@ -830,6 +830,7 @@ class NestedCommandsIrcProxy(ReplyIrcProxy):
|
||||
# action=True implies noLengthCheck=True and prefixNick=False
|
||||
self.noLengthCheck=noLengthCheck or self.noLengthCheck or self.action
|
||||
target = self.private and self.to or self.msg.args[0]
|
||||
if not isinstance(s, basestring): # avoid trying to str() unicode
|
||||
s = str(s) # Allow non-string esses.
|
||||
if self.finalEvaled:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user