Skip to content

Commit c5f1c1c

Browse files
committed
Fix accidental stripping of italic formatting chars
1 parent 9bfdbca commit c5f1c1c

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

cloudbot/clients/irc.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ def close(self):
177177

178178
def message(self, target, *messages):
179179
for text in messages:
180-
text = "".join(text.splitlines())
181180
self.cmd("PRIVMSG", target, text)
182181

183182
def admin_log(self, text, console=True):
@@ -189,11 +188,9 @@ def admin_log(self, text, console=True):
189188
logger.info("[%s|admin] %s", self.name, text)
190189

191190
def action(self, target, text):
192-
text = "".join(text.splitlines())
193191
self.ctcp(target, "ACTION", text)
194192

195193
def notice(self, target, text):
196-
text = "".join(text.splitlines())
197194
self.cmd("NOTICE", target, text)
198195

199196
def set_nick(self, nick):

cloudbot/util/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,4 @@ def _convert(string):
224224
elif formatting in IRC_FORMATTING_DICT:
225225
ret += get_format(formatting)
226226

227-
return ret.strip()
227+
return ret

plugins/core/core_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ def do_reply(result, error, launched_event, launched_hook):
2121
# if there are multiple items in the response, return them on multiple lines
2222
launched_event.reply(*result)
2323
else:
24-
launched_event.reply(*str(result).split('\n'))
24+
launched_event.reply(result)

0 commit comments

Comments
 (0)