mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
core: avoid casting data to string if it is already an instance of basestring, in irc.reply.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
bcfdcf09cf
commit
5bb6fdcd52
@ -826,7 +826,8 @@ 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]
|
||||
s = str(s) # Allow non-string esses.
|
||||
if not isinstance(s, basestring): # avoid trying to str() unicode
|
||||
s = str(s) # Allow non-string esses.
|
||||
if self.finalEvaled:
|
||||
try:
|
||||
if isinstance(self.irc, self.__class__):
|
||||
|
Loading…
Reference in New Issue
Block a user